JDK-8263548 : runtime/cds/appcds/SharedRegionAlignmentTest.java fails to compile after JDK-8263412
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 17
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-03-13
  • Updated: 2021-03-18
  • Resolved: 2021-03-13
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 17
17 b14Fixed
Related Reports
Relates :  
Relates :  
Description
The following test fails to compile in the JDK17 CI:

runtime/cds/appcds/SharedRegionAlignmentTest.java

Here's a snippet from the log file:

----------direct:(8/612)----------
/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1040/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/SharedRegionAlignmentTest.java:42: error: cannot find symbol
    static String appJar = ClassFileInstaller.getJarPath("hello.jar");
                                             ^
  symbol:   method getJarPath(String)
  location: class ClassFileInstaller
Note: /opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1040/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/SharedRegionAlignmentTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
result: Failed. Compilation failed: Compilation failed
Comments
Changeset: 0b68ced0 Author: Igor Ignatyev <iignatyev@openjdk.org> Date: 2021-03-13 01:33:03 +0000 URL: https://git.openjdk.java.net/jdk/commit/0b68ced0
13-03-2021

Looks like runtime/cds/appcds/SharedRegionAlignmentTest.java is a new test that was added yesterday by JDK-8236847
13-03-2021