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

java/io/pathNames/GeneralWin32.java fails on Windows when source dir is on a different drive than jtreg workdir

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Subcomponent:
    • OS:
      windows

      Description

      java/io/pathNames/GeneralWin32.java fails on Windows when the jtreg and source dirs are on different drives.

      Easily reproducible by setting the workdir (using -w:) to a different drive.

      T:\\testoutput\\jtreg\\JTwork\\scratch\\0\\tmp <== tmp\\x.2\\x.4\\x.6\\..\\\\\\..\\\\\\..
      C:\\\\tmp\\foo2 <-- C:tmp\\foo2 ==> C:\\tmp\\foo2 MISMATCH
      java.lang.RuntimeException: Mismatch: C:tmp\\foo2 ==> C:\\tmp\\foo2, should be C:\\\\tmp\\foo2
      at General.check(General.java:285)
      at General.checkSlashes(General.java:323)
      at General.checkNames(General.java:360)
      at GeneralWin32.checkDrive(GeneralWin32.java:136)
      at GeneralWin32.checkDrivePaths(GeneralWin32.java:140)
      at GeneralWin32.main(GeneralWin32.java:174)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchristi Brent Christian
                Reporter:
                ctornqvi Christian Tornqvist
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: