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

Incorrect javadoc of java.base module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • core-libs
    • None
    • b19

      The javadoc of the java,base module suggests the following code to get a 'jrt:/' FileSystem:

          FileSystems.newFileSystem(URI.create("jrt:/"))

      But, this code does not compile. It should use `getFileSystem` instead of `newFileSystem`.

            rgiulietti Raffaello Giulietti
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: