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

Two test failures in java/util/concurrent/tck

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      After the fixes for JDK-8166365 and JDK-8168149, the tests

      java/util/concurrent/tck/JSR166TestCase.java
      java/util/concurrent/tck/JSR166TestCase.java#id1

      started to fail.

        Issue Links

          Activity

          Hide
          martin Martin Buchholz added a comment -
          java/util/concurrent/tck is actually a collection of thousands of individual test methods, and more details please!
          Show
          martin Martin Buchholz added a comment - java/util/concurrent/tck is actually a collection of thousands of individual test methods, and more details please!
          Hide
          martin Martin Buchholz added a comment -
          OK, with latest jdk9-dev, I see:

          JavaTest Message: JUnit Failure: testGenericComparable(ConcurrentHashMapTest): null
          junit.framework.AssertionFailedError
          at junit.framework.Assert.fail(Assert.java:48)
          at junit.framework.Assert.assertTrue(Assert.java:20)
          at junit.framework.Assert.assertTrue(Assert.java:27)
          at ConcurrentHashMapTest.testGenericComparable(ConcurrentHashMapTest.java:179)
          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:543)
          at junit.framework.TestCase.runTest(TestCase.java:168)
          at JSR166TestCase.runTest(JSR166TestCase.java:348)
          at junit.framework.TestCase.runBare(TestCase.java:134)
          at JSR166TestCase.runBare(JSR166TestCase.java:339)
          at junit.framework.TestResult$1.protect(TestResult.java:110)
          at junit.framework.TestResult.runProtected(TestResult.java:128)
          at junit.framework.TestResult.run(TestResult.java:113)
          at junit.framework.TestCase.run(TestCase.java:124)
          at junit.framework.TestSuite.runTest(TestSuite.java:243)
          at junit.framework.TestSuite.run(TestSuite.java:238)
          at junit.framework.TestSuite.runTest(TestSuite.java:243)
          at junit.framework.TestSuite.run(TestSuite.java:238)
          at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
          at org.junit.runners.Suite.runChild(Suite.java:128)
          at org.junit.runners.Suite.runChild(Suite.java:24)
          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:127)
          at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:76)
          at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:71)
          at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43)
          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:543)
          at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
          at java.base/java.lang.Thread.run(Thread.java:844)

          JavaTest Message: JUnit Failure: testGenericComparable2(ConcurrentHashMapTest): null
          junit.framework.AssertionFailedError
          at junit.framework.Assert.fail(Assert.java:48)
          at junit.framework.Assert.assertTrue(Assert.java:20)
          at junit.framework.Assert.assertTrue(Assert.java:27)
          at ConcurrentHashMapTest.testGenericComparable2(ConcurrentHashMapTest.java:198)
          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:543)
          at junit.framework.TestCase.runTest(TestCase.java:168)
          at JSR166TestCase.runTest(JSR166TestCase.java:348)
          at junit.framework.TestCase.runBare(TestCase.java:134)
          at JSR166TestCase.runBare(JSR166TestCase.java:339)
          at junit.framework.TestResult$1.protect(TestResult.java:110)
          at junit.framework.TestResult.runProtected(TestResult.java:128)
          at junit.framework.TestResult.run(TestResult.java:113)
          at junit.framework.TestCase.run(TestCase.java:124)
          at junit.framework.TestSuite.runTest(TestSuite.java:243)
          at junit.framework.TestSuite.run(TestSuite.java:238)
          at junit.framework.TestSuite.runTest(TestSuite.java:243)
          at junit.framework.TestSuite.run(TestSuite.java:238)
          at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
          at org.junit.runners.Suite.runChild(Suite.java:128)
          at org.junit.runners.Suite.runChild(Suite.java:24)
          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:127)
          at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:76)
          at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:71)
          at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43)
          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:543)
          at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
          at java.base/java.lang.Thread.run(Thread.java:844)

          Show
          martin Martin Buchholz added a comment - OK, with latest jdk9-dev, I see: JavaTest Message: JUnit Failure: testGenericComparable(ConcurrentHashMapTest): null junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertTrue(Assert.java:27) at ConcurrentHashMapTest.testGenericComparable(ConcurrentHashMapTest.java:179) 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:543) at junit.framework.TestCase.runTest(TestCase.java:168) at JSR166TestCase.runTest(JSR166TestCase.java:348) at junit.framework.TestCase.runBare(TestCase.java:134) at JSR166TestCase.runBare(JSR166TestCase.java:339) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at org.junit.runner.JUnitCore.run(JUnitCore.java:136) at org.junit.runner.JUnitCore.run(JUnitCore.java:127) at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:76) at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:71) at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43) 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:543) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.base/java.lang.Thread.run(Thread.java:844) JavaTest Message: JUnit Failure: testGenericComparable2(ConcurrentHashMapTest): null junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:48) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertTrue(Assert.java:27) at ConcurrentHashMapTest.testGenericComparable2(ConcurrentHashMapTest.java:198) 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:543) at junit.framework.TestCase.runTest(TestCase.java:168) at JSR166TestCase.runTest(JSR166TestCase.java:348) at junit.framework.TestCase.runBare(TestCase.java:134) at JSR166TestCase.runBare(JSR166TestCase.java:339) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at org.junit.runner.JUnitCore.run(JUnitCore.java:136) at org.junit.runner.JUnitCore.run(JUnitCore.java:127) at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:76) at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:71) at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43) 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:543) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.base/java.lang.Thread.run(Thread.java:844)
          Hide
          martin Martin Buchholz added a comment -
          The test does:

                  for (int i = 0; i < size; i++) {
                      assertTrue(m.containsKey(Collections.singletonList(new BI(i))));
                  }

          which Claes probably just fixed?
          Show
          martin Martin Buchholz added a comment - The test does:         for (int i = 0; i < size; i++) {             assertTrue(m.containsKey(Collections.singletonList(new BI(i))));         } which Claes probably just fixed?
          Hide
          chegar Chris Hegarty added a comment -
          I can confirm that this issue has been fixed, at least in my local environment, by JDK-8166365.
          Show
          chegar Chris Hegarty added a comment - I can confirm that this issue has been fixed, at least in my local environment, by JDK-8166365 .

            People

            • Assignee:
              martin Martin Buchholz
              Reporter:
              darcy Joe Darcy
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: