classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [generics] Patch: FYI: fix ReferenceQueue problem


From: Tom Tromey
Subject: [cp-patches] [generics] Patch: FYI: fix ReferenceQueue problem
Date: 04 Oct 2005 11:12:03 -0600

I'm checking this in on the generics branch.

The generics branch wasn't building for me in Eclipse.
This patch fixes the problem, albeit in a somewhat hacky way.

Tom

2005-10-04  Tom Tromey  <address@hidden>

        * java/lang/ref/Reference.java (nextOnQueue): Changed type.
        * java/lang/ref/ReferenceQueue.java (first): Changed type.

Index: java/lang/ref/Reference.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/ref/Reference.java,v
retrieving revision 1.6.2.3
diff -u -r1.6.2.3 Reference.java
--- java/lang/ref/Reference.java        20 Sep 2005 18:46:29 -0000      1.6.2.3
+++ java/lang/ref/Reference.java        4 Oct 2005 17:17:14 -0000
@@ -91,7 +91,7 @@
    * (not to null, that value is used to mark a not enqueued
    * reference).  
    */
-  Reference<T> nextOnQueue;
+  Reference nextOnQueue;
 
   /**
    * This lock should be taken by the garbage collector, before
Index: java/lang/ref/ReferenceQueue.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/ref/ReferenceQueue.java,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 ReferenceQueue.java
--- java/lang/ref/ReferenceQueue.java   2 Aug 2005 20:12:23 -0000       1.3.2.2
+++ java/lang/ref/ReferenceQueue.java   4 Oct 2005 17:17:14 -0000
@@ -60,7 +60,7 @@
    * itself (not to null, since <code>nextOnQueue</code> is used to 
    * determine if a reference is enqueued).
    */
-  private Reference first;
+  private Reference<? extends T> first;
 
   /**
    * Creates a new empty reference queue.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]