directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r887176 - /directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/DefaultSchemaManager.java
Date Fri, 04 Dec 2009 12:47:47 GMT
Author: elecharny
Date: Fri Dec  4 12:47:46 2009
New Revision: 887176

URL: http://svn.apache.org/viewvc?rev=887176&view=rev
Log:
Fixed loadWirgDeps meyhod : the errors list wasn't cleared

Modified:
    directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/DefaultSchemaManager.java

Modified: directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/DefaultSchemaManager.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/DefaultSchemaManager.java?rev=887176&r1=887175&r2=887176&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/DefaultSchemaManager.java
(original)
+++ directory/shared/branches/shared-schema/ldap-schema-loader/src/main/java/org/apache/directory/shared/schema/DefaultSchemaManager.java
Fri Dec  4 12:47:46 2009
@@ -751,6 +751,12 @@
     {
         boolean loaded = false;
 
+        // Reset the errors if not null
+        if ( errors != null )
+        {
+            errors.clear();
+        }
+
         // Work on a cloned and relaxed registries
         Registries clonedRegistries = cloneRegistries();
         clonedRegistries.setRelaxed();
@@ -781,7 +787,7 @@
                 }
 
                 // Build the cross references
-                registries.buildReferences();
+                errors = registries.buildReferences();
                 registries.setStrict();
 
                 loaded = true;



Mime
View raw message