directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r506166 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
Date Sun, 11 Feb 2007 23:24:19 GMT
Author: akarasulu
Date: Sun Feb 11 15:24:18 2007
New Revision: 506166

URL: http://svn.apache.org/viewvc?view=rev&rev=506166
Log:
syntaxes do not have names nor do they use the obsolete flag

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java?view=diff&rev=506166&r1=506165&r2=506166
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/DescriptionParsers.java
Sun Feb 11 15:24:18 2007
@@ -602,9 +602,13 @@
     private void setSchemaObjectProperties( AbstractSchemaDescription desc, MutableSchemaObject
obj )
     {
         obj.setDescription( desc.getDescription() );
-        obj.setObsolete( desc.isObsolete() );
         obj.setSchema( getSchema( desc ) );
-        obj.setNames( desc.getNames().toArray( EMPTY ) );
+
+        if ( ! ( desc instanceof LdapSyntaxDescription ) )
+        {
+            obj.setNames( desc.getNames().toArray( EMPTY ) );
+            obj.setObsolete( desc.isObsolete() );
+        }
     }
     
     



Mime
View raw message