Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8049367 Modular Run-Time Images
  3. JDK-8062069

Replace jimagefs with jrt file system

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P2 P2
    • None
    • 9-repo-jigsaw
    • core-libs

      The jimage file system provider creates a FileSystem per jimage file. This needs to change so that a FileSystem per runtime image, obtained with:

         FileSystem fs = FileSystems.getFileSystem( URI.create("jrt:/" );

      This allows the API to be used without knowing about the locations of the jimage files. It also hides the fact that there are currently three files.

      The resulting FileSystem will have the module names as the names of the files in the top-level directory. The path to Object.class is obtained with:

        fs.getPath("/java.base/java/lang/Object.class);

      The current file type detection should be removed.


        1. webrev6.zip
          333 kB
        2. webrev5.zip
          318 kB
        3. webrev4.zip
          271 kB
        4. webrev3.zip
          272 kB
        5. webrev2.zip
          268 kB
        6. webrev.zip
          129 kB

            sundar Sundararajan Athijegannathan
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: