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

test/hotspot/jtreg/compiler/jvmci/compilerToVM/GetExceptionTableTest.java is failing after JDK-8194978

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 11
    • 11
    • hotspot
    • b07

      test/hotspot/jtreg/compiler/jvmci/compilerToVM/GetExceptionTableTest.java is failing after the fix for JDK-8194978. The failure is:
      ---
      jib > STDERR:
      jib > java.lang.RuntimeException: public static int compiler.jvmci.compilerToVM.GetExceptionTableTest$DummyClass.tryWithResourcesDummy() throws java.lang.Throwable incorrect exception table length.: expected 5 to equal 6
      jib > at jdk.test.lib.Asserts.fail(Asserts.java:594)
      jib > at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      jib > at jdk.test.lib.Asserts.assertEQ(Asserts.java:178)
      jib > at compiler.jvmci.compilerToVM.GetExceptionTableTest.runSanityTest(GetExceptionTableTest.java:87)
      jib > at java.base/java.util.HashMap.forEach(HashMap.java:1341)
      jib > at compiler.jvmci.compilerToVM.GetExceptionTableTest.main(GetExceptionTableTest.java:63)
      jib > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      jib > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      jib > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      jib > at java.base/java.lang.reflect.Method.invoke(Method.java:569)
      jib > at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      jib > at java.base/java.lang.Thread.run(Thread.java:841)
      jib >
      jib > JavaTest Message: Test threw exception: java.lang.RuntimeException: public static int compiler.jvmci.compilerToVM.GetExceptionTableTest$DummyClass.tryWithResourcesDummy() throws java.lang.Throwable incorrect exception table length.: expected 5 to equal 6
      jib > JavaTest Message: shutting down test
      jib >
      jib > STATUS:Failed.`main' threw exception: java.lang.RuntimeException: public static int compiler.jvmci.compilerToVM.GetExceptionTableTest$DummyClass.tryWithResourcesDummy() throws java.lang.Throwable incorrect exception table length.: expected 5 to equal 6
      ---

      The reason appears to be that the test expects a particular number of entries in the exception table for try-with-resources, but the fix for JDK-8194978 reduces the number of these entries (among other things).

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: