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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u241
    • 8u31
    • 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

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

                Created:
                Updated:
                Resolved: