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

java\lang\constant\CondyDescTest.java fails with jtreg 6

XMLWordPrintable

      java\lang\constant\CondyDescTest.java fails with jtreg 6, which provides TestNG 4.7.

      Failure looks similar to other failures in java.util: assertions are not behaving as expected. See JDK-8266780

      test CondyDescTest.testDynamicConstant(): success
      test CondyDescTest.testEnumDesc(): success
      test CondyDescTest.testLifting(): failure
      java.lang.AssertionError: expected not same [DynamicConstantDesc[ConstantBootstraps::nullConstant()Object]] but found [DynamicConstantDesc[ConstantBootstraps::nullConstant()Object]]
      at org.testng.Assert.fail(Assert.java:99)
      at org.testng.Assert.failSame(Assert.java:1025)
      at org.testng.Assert.assertNotSame(Assert.java:1005)
      at org.testng.Assert.assertNotSame(Assert.java:1017)
      at CondyDescTest.testLifting(CondyDescTest.java:222)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:794)
      at org.testng.TestRunner.run(TestRunner.java:596)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
      at org.testng.SuiteRunner.run(SuiteRunner.java:276)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
      at org.testng.TestNG.runSuites(TestNG.java:1063)
      at org.testng.TestNG.run(TestNG.java:1031)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      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:831)
      test CondyDescTest.testNested(): success
      test CondyDescTest.testNullConstant(): success
      test CondyDescTest.testVarHandles(): success

      ===============================================
      java/lang/constant/CondyDescTest.java
      Total tests run: 6, Passes: 5, Failures: 1, Skips: 0
      ===============================================

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: