harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r582226 - in /harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc: java/lang/ThreadWeakRef.java org/apache/harmony/kernel/vm/InternMap.java
Date Fri, 05 Oct 2007 12:17:44 GMT
Author: varlax
Date: Fri Oct  5 05:17:43 2007
New Revision: 582226

URL: http://svn.apache.org/viewvc?rev=582226&view=rev
Log:
Fixed ecj's whim. It wants extra intermediate cast to generics

Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/ThreadWeakRef.java
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/InternMap.java

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/ThreadWeakRef.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/ThreadWeakRef.java?rev=582226&r1=582225&r2=582226&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/ThreadWeakRef.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/ThreadWeakRef.java
Fri Oct  5 05:17:43 2007
@@ -40,6 +40,6 @@
     }
 
     public static ThreadWeakRef poll() {
-        return (ThreadWeakRef)refQueue.poll();
+        return (ThreadWeakRef)( WeakReference<Thread>)refQueue.poll();
     }
 }

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/InternMap.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/InternMap.java?rev=582226&r1=582225&r2=582226&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/InternMap.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/kernel/vm/InternMap.java
Fri Oct  5 05:17:43 2007
@@ -70,7 +70,7 @@
     void poll()
     {
         Entry toRemove;
-        while ((toRemove = (Entry)referenceQueue.poll()) != null) {
+        while ((toRemove = (Entry)(WeakReference<String>)referenceQueue.poll()) !=
null) {
                 removeEntry(toRemove);
         }
     }



Mime
View raw message