--- jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2017/07/17 21:01:30 1.81 +++ jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2018/01/23 20:44:11 1.82 @@ -17,7 +17,6 @@ import java.util.concurrent.locks.Condit import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantReadWriteLock; -import junit.framework.AssertionFailedError; import junit.framework.Test; import junit.framework.TestSuite; @@ -88,7 +87,7 @@ public class ReentrantReadWriteLockTest long startTime = System.nanoTime(); while (!lock.hasQueuedThread(t)) { if (millisElapsedSince(startTime) > LONG_DELAY_MS) - throw new AssertionFailedError("timed out"); + throw new AssertionError("timed out"); Thread.yield(); } assertTrue(t.isAlive());