Documentation code uses inexistant method in java.nio.file.FileSystems

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u241
    • Affects Version/s: 8u31
    • Component/s: docs
    • x86
    • windows_8

        A DESCRIPTION OF THE PROBLEM :
        The page contains the following code:

        FileSystem fs = FileSystems.newFileSystem(zipfile, env, null);

        However, this method does not exist & the code should be changed to:

        FileSystem fs = FileSystems.newFileSystem(zipfile.toUri(), env, null);

        and/or

        FileSystem fs = FileSystems.newFileSystem(zipfile, null);



        URL OF FAULTY DOCUMENTATION :
        http://docs.oracle.com/javase/8/docs/technotes/guides/io/fsp/zipfilesystemprovider.html

              Assignee:
              Padmapriya Prasad (Inactive)
              Reporter:
              Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: