Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8286551

JDK-8286460 causes tests to fail to compile in Tier2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 19
    • Fix Version/s: 19
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b22
    • Verification:
      Verified

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ccheung Calvin Cheung
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: