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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P2 P2
    • 9
    • 9, 10
    • 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.

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

                Created:
                Updated:
                Resolved: