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

Incorrect javadoc of java.base module

    XMLWordPrintable

Details

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

    Description

      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`.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: