Compile option -g is not used if system time on the machine is set earlier than modification time of .java file for the test.
To reproduce, use attached jtregbug.zip. Unzip it to directory in C:/Temp and change paths in jtreg_win.sh.
$ bash jtreg_win.sh
...
$ ls -la workDir/classes/package/HelloWorld.class
-rwxrwxrwa 1 Administrators None 695 Jan 22 19:39 workDir/classes/package/HelloWorld.class
^^^ All is well
[Now change system time to Jan 1]
$ bash jtreg_win.sh
$ ls -la workDir/classes/package/HelloWorld.class
-rwxrwxrwa 1 Administrators None 559 Jan 1 19:41 workDir/classes/package/HelloWorld.class
^^^
This indicates that there is no debug information in class file.
To reproduce, use attached jtregbug.zip. Unzip it to directory in C:/Temp and change paths in jtreg_win.sh.
$ bash jtreg_win.sh
...
$ ls -la workDir/classes/package/HelloWorld.class
-rwxrwxrwa 1 Administrators None 695 Jan 22 19:39 workDir/classes/package/HelloWorld.class
^^^ All is well
[Now change system time to Jan 1]
$ bash jtreg_win.sh
$ ls -la workDir/classes/package/HelloWorld.class
-rwxrwxrwa 1 Administrators None 559 Jan 1 19:41 workDir/classes/package/HelloWorld.class
^^^
This indicates that there is no debug information in class file.
- duplicates
-
CODETOOLS-6873041 A lot of JDI tests fail with unexpected com.sun.jdi.AbsentInformationException (Xcomp win-586)
-
- Closed
-
- relates to
-
CODETOOLS-6873206 jtreg should give a warning when encountering source files dated in the future
-
- Resolved
-