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