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

Comparing jsr166/src/test/tck/ReentrantReadWriteLockTest.java (file contents):
Revision 1.7 by dl, Thu Dec 4 20:54:46 2003 UTC vs.
Revision 1.8 by dl, Fri Dec 19 14:44:25 2003 UTC

# Line 60 | Line 60 | public class ReentrantReadWriteLockTest
60              return new PublicCondition(this);
61          }
62  
63 <        static class PublicCondition extends AbstractReentrantLock.ConditionObject {
63 >        static class PublicCondition extends ReentrantReadWriteLock.WriterConditionObject {
64              PublicCondition(PublicReentrantReadWriteLock l) { super(l); }
65              public Collection<Thread> getWaitingThreads() {
66                  return super.getWaitingThreads();
# Line 920 | Line 920 | public class ReentrantReadWriteLockTest
920       */
921      public void testHasWaiters() {
922          final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();      
923 <        final AbstractReentrantLock.ConditionObject c = (AbstractReentrantLock.ConditionObject)(lock.writeLock().newCondition());
923 >        final ReentrantReadWriteLock.WriterConditionObject c = (ReentrantReadWriteLock.WriterConditionObject)(lock.writeLock().newCondition());
924          Thread t = new Thread(new Runnable() {
925                  public void run() {
926                      try {
# Line 962 | Line 962 | public class ReentrantReadWriteLockTest
962       */
963      public void testGetWaitQueueLength() {
964          final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();      
965 <        final AbstractReentrantLock.ConditionObject c = (AbstractReentrantLock.ConditionObject)(lock.writeLock().newCondition());
965 >        final ReentrantReadWriteLock.WriterConditionObject c = (ReentrantReadWriteLock.WriterConditionObject)(lock.writeLock().newCondition());
966          Thread t1 = new Thread(new Runnable() {
967                  public void run() {
968                      try {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines