JDK-8191580 : open/test/hotspot/jtreg/runtime/LoadClass/TestResize fails on product build
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-11-20
  • Updated: 2017-12-01
  • Resolved: 2017-11-21
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 10
10 b34Fixed
Related Reports
Relates :  
Relates :  
Description
JDK-8184765 introduced a test, which works fine on debug build, but fails on product build.
Comments
This test now fails to compile! /scratch/opt/jprt/T/P1/213839.daholme/s/open/test/hotspot/jtreg/runtime/LoadClass/TestResize.java:99: error: cannot find symbol if (Platform.isDebugBuild()) { ^ symbol: variable Platform location: class TestResize
21-11-2017

The issue here is that the TestResize launches a java process with "PrintSystemDictionaryAtExit" flag set, which is a "notproduct" flag, and will fail on product build. We need to guard the test with : @requires (vm.debug == true) and for good measure, in case someone copy/pastes the test code, with : public static void main(String[] args) throws Exception { if (Platform.isDebugBuild()) { ... } }
20-11-2017