JDK-7015395 : [TESTBUG] runtime/6626217/Test6626217.sh fails if compilation happens fast enough for timestamps to be equal
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs20,7u65
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris
  • CPU: generic
  • Submitted: 2011-01-27
  • Updated: 2014-06-26
  • Resolved: 2014-01-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b03Fixed
Related Reports
Relates :  
Description
runtime/6626217/Test6626217.sh does the following:

1. copies java files (including many_loader.java and bug_21227.java) to the work dir
2. compiles them
3. substitutes many_loader.java with another version
4. compiles new version of many_loader.java

The problem occures when bug_21227.java and bug_21227.class have the same timestamp (i.e. steps 1 and 2 happened within 1 second). In this case, during step 4, the recompilation of bug_21227.java is triggered; it fails with the following message:

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b124)
Java HotSpot(TM) Server VM (build 20.0-b05, mixed mode)
warning: [options] bootstrap class path not set in conjunction with -source 1.4
1 warning
warning: [options] bootstrap class path not set in conjunction with -source 1.4
./bug_21227.java:40: warning: [static] static variable should be qualified by type name, bug_21227, instead of by an expression
    You_Have_Been_P0wned q = b._p0wnee;
                              ^
./bug_21227.java:40: incompatible types
    You_Have_Been_P0wned q = b._p0wnee;
                              ^
  required: You_Have_Been_P0wned
  found:    Object
1 error
2 warnings
mv: cannot access many_loader.class
result: Failed. Execution failed: exit code 1

Comments
See if this test can be rewritten in java as part of the fix
01-08-2013