A few javac tests fail on Windows when the source and jtreg work dir are not on the same drive

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P2
    • 9
    • Affects Version/s: 9, 10
    • Component/s: tools
    • windows

        The following tests fail when the jtreg workdir is not on the same drive as the source code for the tests:

        tools/javac/processing/errors/StopOnInapplicableAnnotations/Source.java
        tools/javac/warnings/suppress/Overridden.java
        tools/javac/warnings/suppress/T6480588.java
        tools/javac/warnings/suppress/T6707032.java
        tools/javac/warnings/suppress/T8021112b.java
        tools/javac/warnings/suppress/T8069094.java

        The problem is that they're not using the File.pathSeparator when splitting path's on Windows, the reason why it usually work is that c:\\directory\\other turns into \\directory\\other when it's split using ":" and this works as long as the current working directory is on the same drive as the source path.

              Assignee:
              Christian Tornqvist
              Reporter:
              Christian Tornqvist
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: