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

Test compiler/aot/verification/ClassAndLibraryNotMatchTest.java fails in JPRT for jdk10/hs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21
    • Verification:
      Verified

      Description

      Pushes through JRPT on the stockholm queue have failed because compiler/aot/cli/jaotc/CompileJarTest.java failed with:

      STDERR:
       stdout: [error opening file: Can't find dependent libraries
      ];
       stderr: []
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:380)
      at compiler.aot.verification.ClassAndLibraryNotMatchTest.runAndCheckHelloWorld(ClassAndLibraryNotMatchTest.java:108)
      at compiler.aot.verification.ClassAndLibraryNotMatchTest.runTest(ClassAndLibraryNotMatchTest.java:120)
      at compiler.aot.verification.ClassAndLibraryNotMatchTest.main(ClassAndLibraryNotMatchTest.java:63)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: Test threw exception: java.lang.RuntimeException

      The failure has only been on windows x64.

      Not sure if this is the problem but this test is adding . to the class path but using a ":" separator.

      Arrays.asList("-classpath", Utils.TEST_CLASS_PATH + ":."), null);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bobv Bob Vandette (Inactive)
              Reporter:
              bobv Bob Vandette (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: