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

UNCTest should use an existing UNC path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • core-libs
    • master

      UNCTest.java was written to test that the URLConnection returned by URL::openConnection for a UNC path does not return the connection in an open state.

      However, since the UNC path does not exist, an FtpURLConnection is returned instead, so the test doesn't really execute its intended code paths.

      Most CI Windows instances seem to have Administrative Shares enabled, so we can use an UNC path like "\\computername\C$\Windows" instead and just skip the test in the case that Administrative Shares is disabled.

            eirbjo Eirik Bjørsnøs
            eirbjo Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: