JDK-8286551 : JDK-8286460 causes tests to fail to compile in Tier2
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2022-05-10
  • Updated: 2022-09-26
  • Resolved: 2022-05-10
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 JDK 19
17.0.6-oracleFixed 19 b22Fixed
Related Reports
Relates :  
Description
The fix for the following bug:

JDK-8286460 Remove dependence on JAR filename in CDS tests

is causing tests in Tier2 to fail to compile:

runtime/cds/appcds/dynamicArchive/methodHandles/MethodHandlesAsCollectorTest.java
runtime/cds/appcds/dynamicArchive/methodHandles/MethodHandlesCastFailureTest.java
runtime/cds/appcds/dynamicArchive/methodHandles/MethodHandlesGeneralTest.java
runtime/cds/appcds/dynamicArchive/methodHandles/MethodHandlesInvokersTest.java
runtime/cds/appcds/dynamicArchive/methodHandles/MethodHandlesPermuteArgumentsTest.java
runtime/cds/appcds/dynamicArchive/methodHandles/MethodHandlesSpreadArgumentsTest.java
runtime/cds/appcds/methodHandles/MethodHandlesAsCollectorTest.java
runtime/cds/appcds/methodHandles/MethodHandlesCastFailureTest.java
runtime/cds/appcds/methodHandles/MethodHandlesGeneralTest.java
runtime/cds/appcds/methodHandles/MethodHandlesInvokersTest.java
runtime/cds/appcds/methodHandles/MethodHandlesPermuteArgumentsTest.java
runtime/cds/appcds/methodHandles/MethodHandlesSpreadArgumentsTest.java

The runtime/cds/appcds/methodHandles/MethodHandlesSpreadArgumentsTest.java test is failing with:

----------direct:(6/425)----------
/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+22-1571/src.full/open/test/hotspot/jtreg/runtime/cds/appcds/methodHandles/MethodHandlesSpreadArgumentsTest.java:77: error: cannot find symbol
        String junitJar = Path.of(Test.class.getProtectionDomain().getCodeSource().getLocation().toURI()).toString();
                          ^
  symbol:   variable Path
  location: class MethodHandlesSpreadArgumentsTest
1 error
result: Failed. Compilation failed: Compilation failed
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/722 Date: 2022-09-22 13:14:36 +0000
22-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/717 Date: 2022-09-21 13:15:58 +0000
21-09-2022

Fix request [17u] I backport this for parity with 17.0.6-oracle. It is a fix for 8286460. No risk, only a test change. Clean backport. Tests pass.
21-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/713 Date: 2022-09-21 12:43:03 +0000
21-09-2022

Changeset: 070a0cda Author: Calvin Cheung <ccheung@openjdk.org> Date: 2022-05-10 20:20:37 +0000 URL: https://git.openjdk.java.net/jdk/commit/070a0cda31f83a3cf18a612b91c30d66cf407c3c
10-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8639 Date: 2022-05-10 20:05:52 +0000
10-05-2022