If a source file is dated in the future, the following scenario will fail to execute as might be expected
@compile -g Foo
@run main Foo
The initial @compile action is unconditional and will always occur. The second "@run main" action has an implicit "rebuild if necessary" step, which may be invoked unexpectedly if the first action did not generate a class file newer than the corresponding source file.
There is nothing jtreg can do to prevent such a situation, but it would help if it gave a warning altering the user to the situation.
@compile -g Foo
@run main Foo
The initial @compile action is unconditional and will always occur. The second "@run main" action has an implicit "rebuild if necessary" step, which may be invoked unexpectedly if the first action did not generate a class file newer than the corresponding source file.
There is nothing jtreg can do to prevent such a situation, but it would help if it gave a warning altering the user to the situation.
- relates to
-
CODETOOLS-6796844 Option to @compile is not used if system time is earlier than modification time of .java file
-
- Closed
-
-
CODETOOLS-6873041 A lot of JDI tests fail with unexpected com.sun.jdi.AbsentInformationException (Xcomp win-586)
-
- Closed
-