directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1486628 - in /directory/shared/trunk/ldap/schema/converter/src/main: antlr/schemaConverter.g java/org/apache/directory/api/converter/schema/AttributeTypeHolder.java
Date Mon, 27 May 2013 13:56:53 GMT
Author: pamarcelot
Date: Mon May 27 13:56:53 2013
New Revision: 1486628

URL: http://svn.apache.org/r1486628
Log:
Fix for DIRSTUDIO-917 (Exporting for ApacheDS an AT with a not-set syntax length results in
'm-length: 0' output in the resulting LDIF file).

Modified:
    directory/shared/trunk/ldap/schema/converter/src/main/antlr/schemaConverter.g
    directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/converter/schema/AttributeTypeHolder.java

Modified: directory/shared/trunk/ldap/schema/converter/src/main/antlr/schemaConverter.g
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/schema/converter/src/main/antlr/schemaConverter.g?rev=1486628&r1=1486627&r2=1486628&view=diff
==============================================================================
--- directory/shared/trunk/ldap/schema/converter/src/main/antlr/schemaConverter.g (original)
+++ directory/shared/trunk/ldap/schema/converter/src/main/antlr/schemaConverter.g Mon May
27 13:56:53 2013
@@ -478,7 +478,7 @@ syntax [AttributeTypeHolder type]
         String length = comps[1].substring( index + 1, comps[1].length() - 1 );
 
         type.setSyntax( oid );
-        type.setOidLen( Integer.parseInt( length ) );
+        type.setOidLen( Long.parseLong( length ) );
     }
     ;
 

Modified: directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/converter/schema/AttributeTypeHolder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/converter/schema/AttributeTypeHolder.java?rev=1486628&r1=1486627&r2=1486628&view=diff
==============================================================================
--- directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/converter/schema/AttributeTypeHolder.java
(original)
+++ directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/converter/schema/AttributeTypeHolder.java
Mon May 27 13:56:53 2013
@@ -62,7 +62,7 @@ public class AttributeTypeHolder extends
     private String syntax;
 
     /** The optional length for this attribute */
-    private int oidLen = -1;
+    private long oidLen = -1;
 
     /** The attribute uase. Default to userApplication */
     private UsageEnum usage = UsageEnum.USER_APPLICATIONS;
@@ -282,7 +282,7 @@ public class AttributeTypeHolder extends
      * 
      * @return The attributeType's syntax length
      */
-    public int getOidLen()
+    public long getOidLen()
     {
         return oidLen;
     }
@@ -293,7 +293,7 @@ public class AttributeTypeHolder extends
      * 
      * @param oidLen The attributeType's syntax length
      */
-    public void setOidLen( int oidLen )
+    public void setOidLen( long oidLen )
     {
         this.oidLen = oidLen;
     }



Mime
View raw message