JDK-8218613 : [TESTBUG] runtime/ErrorHandling tests are building incorrect testlibrary classes
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-02-07
  • Updated: 2019-09-14
  • Resolved: 2019-02-12
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.
Other
openjdk8u212 b01Fixed
Related Reports
Relates :  
Relates :  
Description
jdk8u-dev/hotspot/test $ jtreg -jdk:/home/shade/trunks/jdk8u-dev/build/linux-x86_64-normal-server-fastdebug/images/j2sdk-image/ -conc:8 runtime/ErrorHandling/*

command: build jdk.test.lib.*
reason: User specified action: run build jdk.test.lib.* 
result: Not run. Test running...
test result: Error. can't find jdk.test.lib.* in test directory or libraries


This is caused by bad backport to 8u here:
 http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/8641949eb21f

It builds jdk.test.lib.*, but uses com.sun.oracle.java.testlibrary.*:

+ * @build jdk.test.lib.*
...
+import com.oracle.java.testlibrary.ProcessTools;
+import com.oracle.java.testlibrary.OutputAnalyzer;

The 9 version is fine:
  http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/cbc2d5fbdae1
Comments
Looks like it. 8u RFR: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-February/008527.html
07-02-2019

I think the incorrect @build got through silently in previous jtreg versions but is now flagged as an error.
07-02-2019