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

Support all available file attributes

XMLWordPrintable

    • x86_64
    • windows_7

      A DESCRIPTION OF THE REQUEST :
      BasicFileAttributes support creation, modified, and accessed time stamps but POSIX has changed but this is not available and creation is in the interface but is not available on this platform . Also there are a lot of other attributes in system/stat.h that are not available. I assume other platforms are not fully supported regarding all file meta-data. I was hopeing Java would provide better access to platform specific information in a more platform neutral way. Can attribute support be more fully implemented?

      JUSTIFICATION :
      To provide a fully realised API instead of a solution that is complete.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Support fully all platform / file-systems meta-data.
      ACTUAL -
      Unable to access all file meta data eg inside, change time, device ID major and minor etc.

      ---------- BEGIN SOURCE ----------
      Here are the potential attributes as found in the header
      http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html
      Assume Mac / windows is not fully complete but I have not checked their APIs.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I am either going to modify the JDK or code my own JNI solution for an OSGi platform.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: