We should be using addAll, not add... generics refuses
to compile this, so a win for them!

Changelog:

2006-07-11  Andrew John Hughes  <[EMAIL PROTECTED]>

        * java/lang/management/ManageFactory.java:
        (getMemoryManagerMXBeans()): Use addAll, not add.

-- 
Andrew :-)

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/lang/management/ManagementFactory.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/lang/management/ManagementFactory.java,v
retrieving revision 1.10
diff -u -3 -p -u -r1.10 ManagementFactory.java
--- java/lang/management/ManagementFactory.java 5 Jul 2006 21:44:08 -0000       
1.10
+++ java/lang/management/ManagementFactory.java 11 Jul 2006 20:13:34 -0000
@@ -224,7 +224,7 @@ public class ManagementFactory
     String[] names = VMManagementFactory.getMemoryManagerNames();
     for (int a = 0; a < names.length; ++a)
       managerBeans.add(new MemoryManagerMXBeanImpl(names[a]));
-    managerBeans.add(getGarbageCollectorMXBeans());
+    managerBeans.addAll(getGarbageCollectorMXBeans());
     return managerBeans;
   }
 

Attachment: signature.asc
Description: Digital signature

Reply via email to