directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1100977 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java
Date Mon, 09 May 2011 12:15:46 GMT
Author: pamarcelot
Date: Mon May  9 12:15:46 2011
New Revision: 1100977

URL: http://svn.apache.org/viewvc?rev=1100977&view=rev
Log:
Fixed a bug where dependencies were not copied correctly (switched arrays when calling System.arraycopy(...)).

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java?rev=1100977&r1=1100976&r2=1100977&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java
Mon May  9 12:15:46 2011
@@ -160,12 +160,12 @@ public class DefaultSchema implements Sc
             else
             {
                 String[] tempDependencies = new String[ dependencies.length + dependenciesToAdd.length
];
-                System.arraycopy( tempDependencies, 0, dependencies, 0, dependencies.length
);
+                System.arraycopy( dependencies, 0, tempDependencies, 0, dependencies.length
);
                 start = dependencies.length;
                 dependencies = tempDependencies;
             }
             
-            System.arraycopy( dependenciesToAdd, 0, dependenciesToAdd, start, dependenciesToAdd.length
);
+            System.arraycopy( dependenciesToAdd, 0, dependencies, start, dependenciesToAdd.length
);
         }
     }
 



Mime
View raw message