activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r390374 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java
Date Fri, 31 Mar 2006 09:03:54 GMT
Author: rajdavies
Date: Fri Mar 31 01:03:44 2006
New Revision: 390374

URL: http://svn.apache.org/viewcvs?rev=390374&view=rev
Log:
sbe fix on collections toArray(Object[])

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java?rev=390374&r1=390373&r2=390374&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ContainerValueCollection.java
Fri Mar 31 01:03:44 2006
@@ -66,7 +66,7 @@
     public Object[] toArray(Object[] result){
         List list=container.getItemList();
         synchronized(list){
-            if(result.length<list.size()){
+            if(result.length<=list.size()){
                 int count=0;
                 result=(Object[]) java.lang.reflect.Array.newInstance(result.getClass().getComponentType(),list.size());
                 for(Iterator i=list.iterator();i.hasNext();){



Mime
View raw message