[cp-patches] [generics] FYI: Fixed compile error in java/util/Collections.java

Jeroen Frijters jeroen at sumatra.nl
Wed Jun 21 11:39:44 UTC 2006


Hi,

Now that builder is using a new version of ecj, the generics branch no
longer compiled due to a cast bug. I checked in a fix.

Regards,
Jeroen

2006-06-21  Jeroen Frijters  <jeroen at frijters.net>

        * java/util/Collections (entrySet): Fixed compile error.
-------------- next part --------------
Index: java/util/Collections.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/Collections.java,v
retrieving revision 1.28.2.22
diff -u -r1.28.2.22 Collections.java
--- java/util/Collections.java	11 Jun 2006 18:23:24 -0000	1.28.2.22
+++ java/util/Collections.java	18 Jun 2006 08:25:55 -0000
@@ -6619,7 +6619,7 @@
       if (entries == null)
 	{
 	  Class<Map.Entry<K,V>> klass =
-	    (Class<Map.Entry<K,V>>) Map.Entry.class;
+	    (Class<Map.Entry<K,V>>) (Class) Map.Entry.class;
 	  entries = new CheckedEntrySet<Map.Entry<K,V>,K,V>(m.entrySet(),
 							    klass,
 							    keyType,


More information about the Classpath-patches mailing list