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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u31
    • Fix Version/s: 8u241
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_8

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: