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

runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java fail with jfx

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 11, 17, 18
    • hotspot
    • None

      configure --with-import-modules=modular-sdk

      make run-test CONF=fastdebug TEST="runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java" failed:

      ```
      STDERR:
      java.lang.RuntimeException: javafx.controls requires javafx.base jrt:/javafx.base is different from javafx.base requires jdk.jfr jrt:/jdk.jfr
              at TestCommon.checkOutputStrings(TestCommon.java:657)
              at ArchivedModuleCompareTest.main(ArchivedModuleCompareTest.java:82)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
              at java.base/java.lang.Thread.run(Thread.java:833)
      ```

      debug patch:

      ```
      diff --git a/test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java b/test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java
      index 00ef746123f..5501e8264e0 100644
      --- a/test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java
      +++ b/test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java
      @@ -75,6 +75,10 @@ public class ArchivedModuleCompareTest {
               TestCommon.checkExec(output);
               if (output.getStderr().contains("sharing")) {
                   String moduleResolutionOut2 = TestCommon.filterOutLogs(output.getStdout());
      + System.out.println("************************* moduleResolutionOut1 ***************************");
      + System.out.println(moduleResolutionOut1);
      + System.out.println("************************* moduleResolutionOut2 ***************************");
      + System.out.println(moduleResolutionOut2);
                   TestCommon.checkOutputStrings(
                       moduleResolutionOut1, moduleResolutionOut2, "\n");
               }
      ```

      There are 2 javafx.base in the moduleResolutionOut2:

      ```
      javafx.base requires jdk.jfr jrt:/jdk.jfr
      javafx.base requires java.desktop jrt:/java.desktop
      ```

            Unassigned Unassigned
            lzhai Leslie Zhai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: