lock.writeLock().release();
lock.writeLock().release();
}
public void testMoreReadReleasesThanAcquisitions() throws InterruptedException {
lock=new ReentrantWriterPreferenceReadWriteLock();
lock.readLock().acquire();
lock.readLock().release();
try {
lock.readLock().release();
fail("read locks cannot be released more than acquired");