Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8149792

Support UserDefinedFileAttributeView/extended attributes on OS X / HFS+

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      A DESCRIPTION OF THE REQUEST :
      Java doesn't support UserDefinedFileAttributeView.class on Mac OS X. Thus Files.getFileAttributeView(VALID_PATH, UserDefinedFileAttributeView.class) always return null. See OpenJDK issue:

      https://bugs.openjdk.java.net/browse/JDK-8030048

      JUSTIFICATION :
      Parity with Linux and Windows


      ---------- BEGIN SOURCE ----------
      import java.io.IOException;
      import java.nio.file.Files;
      import java.nio.file.Paths;
      import java.nio.file.attribute.UserDefinedFileAttributeView;

      public class ExtFileAttributeChecker {
          public static void main(String[] args) throws IOException {
              System.out.println(Files.getFileStore(Paths.get( " ./ " )).supportsFileAttributeView(UserDefinedFileAttributeView.class));
          }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      https://github.com/IsNull/xattrj

        Issue Links

          Activity

          webbuggrp Webbug Group created issue -
          psonal Pallavi Sonal made changes -
          Field Original Value New Value
          Link This issue duplicates JDK-8030048 [ JDK-8030048 ]
          psonal Pallavi Sonal made changes -
          Project Java Incidents [ 10301 ] JDK [ 10100 ]
          Key JI-9029494 JDK-8149792
          Workflow JBS Incident Workflow [ 4872700 ] JBS Workflow [ 4872700 ]
          Component/s core-libs [ 10300 ]
          Component/s core-libs [ 10701 ]
          Affects Version/s 8u74 [ 18330 ]
          Affects Version/s 9 [ 14949 ]
          Affects Version/s 8u74 [ 18334 ]
          psonal Pallavi Sonal made changes -
          Subcomponent java.nio [ 499 ] java.nio [ 228 ]
          psonal Pallavi Sonal made changes -
          Labels webbug dcs-pso webbug
          psonal Pallavi Sonal made changes -
          Status New [ 10000 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]
          psonal Pallavi Sonal made changes -
          Assignee Pallavi Sonal [ psonal ]
          psonal Pallavi Sonal made changes -
          Labels dcs-pso webbug dcs-pso reproducer-yes webbug

            People

            • Assignee:
              psonal Pallavi Sonal
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: