JDK-8197959 : [TESTBUG] Some (App)CDS tests require modification due to the removal of the Java EE and CORBA modules
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-02-14
  • Updated: 2018-05-03
  • Resolved: 2018-04-26
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 11
11 b12Fixed
Related Reports
Relates :  
Description
After the fix for JDK-8190378 (Removal of CORBA and Java EE modules), the java.corba module is no longer available.

CDS test
-------------
Tests such as SharedArchiveFile/BootAppendTests.java which depends on the java.corba module will start failing.
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.corba not found
];
 stderr: []
 exitValue = 1

java.lang.RuntimeException: 'sharing' missing from stdout/stderr

AppCDS tests
------------------
appcds/HelloExtTest.java
appcds/javaldr/CheckAnonymousClass.java

The above tests have the same problem during archive dump time:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.corba not found

Although during run time, the archive cannot be found
An error has occurred while processing the shared archive file.
Specified shared archive not found.

the test result still showing "Passed".
Comments
With an updated jdk/hs repo, the following AppCDS tests failed: 1) due to missing java.corba module: runtime/SharedArchiveFile/BootAppendTests.java runtime/appcds/HelloExtTest.java runtime/appcds/javaldr/CheckAnonymousClass.java 2) due to missing java.activation module: runtime/appcds/jigsaw/classpathtests/ClassPathTests.java runtime/appcds/jigsaw/overridetests/OverrideTests.java
16-02-2018

All affected tests are ProblemListed under JDK-8194310.
14-02-2018