ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/LockSupportTest.java
(Generate patch)

Comparing jsr166/src/test/tck/LockSupportTest.java (file contents):
Revision 1.19 by dl, Fri May 6 11:22:07 2011 UTC vs.
Revision 1.20 by jsr166, Fri May 6 17:33:55 2011 UTC

# Line 332 | Line 332 | public class LockSupportTest extends JSR
332      }
333  
334      /**
335 +     * getBlocker(null) throws NullPointerException
336 +     */
337 +    public void testGetBlockerNull() {
338 +        try {
339 +            LockSupport.getBlocker(null);
340 +            shouldThrow();
341 +        } catch (NullPointerException success) {}
342 +    }
343 +
344 +    /**
345       * parkUntil(0) returns immediately
346       * Requires hotspot fix for:
347       * 6763959 java.util.concurrent.locks.LockSupport.parkUntil(0) blocks forever

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines