directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1087290 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/DefaultSchema.java
Date Thu, 31 Mar 2011 13:11:23 GMT
Author: pamarcelot
Date: Thu Mar 31 13:11:22 2011
New Revision: 1087290

URL: http://svn.apache.org/viewvc?rev=1087290&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=1087290&r1=1087289&r2=1087290&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
Thu Mar 31 13:11:22 2011
@@ -151,7 +151,7 @@ public class DefaultSchema implements Sc
         if ( dependenciesToAdd != null )
         {
             this.dependencies = new String[dependenciesToAdd.length];
-            System.arraycopy( this.dependencies, 0, dependenciesToAdd, 0, dependenciesToAdd.length
);
+            System.arraycopy( dependenciesToAdd, 0, dependencies, 0, dependenciesToAdd.length
);
         }
     }
 



Mime
View raw message