--- jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java 2004/01/07 20:49:53 1.10 +++ jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java 2004/01/08 01:29:46 1.11 @@ -155,6 +155,18 @@ public class AbstractQueuedSynchronizerT } /** + * isQueued(null) throws NPE + */ + public void testIsQueuedNPE() { + final Mutex lock = new Mutex(); + try { + lock.isQueued(null); + shouldThrow(); + } catch (NullPointerException success) { + } + } + + /** * isQueued reports whether a thread is queued. */ public void testIsQueued() {