I'm trying to write a test to expose a problem in javac on Windows.
The broken code in javac was something like:
dirname + "/" + basename
This was changed to:
new File(dirname, basename).getPath();
I'm then trying to verify the change by running a test program like this:
java -Dfile.separator='!' TestProgram
However, the File constructor uses UnixFileSystem.normalize which ignores
the value of UnixFileSystem.slash. Consequently, my test fails.
The broken code in javac was something like:
dirname + "/" + basename
This was changed to:
new File(dirname, basename).getPath();
I'm then trying to verify the change by running a test program like this:
java -Dfile.separator='!' TestProgram
However, the File constructor uses UnixFileSystem.normalize which ignores
the value of UnixFileSystem.slash. Consequently, my test fails.
- duplicates
-
JDK-4165411 java.lang.System: Forbid the modification of read-only system properties
-
- Open
-