directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r111641 - /incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java /incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
Date Sun, 12 Dec 2004 05:36:50 GMT
Author: akarasulu
Date: Sat Dec 11 21:36:49 2004
New Revision: 111641

URL: http://svn.apache.org/viewcvs?view=rev&rev=111641
Log:
Changes ...

 o caught bug in LdapName where sublist was used which shared same 
   backing store of list when creating getSuffix and getPrefix
 o added constructor overload to add an explanation to the exception
 

Modified:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java
Url: http://svn.apache.org/viewcvs/incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java?view=diff&rev=111641&p1=incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java&r1=111640&p2=incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java&r2=111641
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/exception/LdapNameAlreadyBoundException.java
Sat Dec 11 21:36:49 2004
@@ -35,6 +35,18 @@
 public class LdapNameAlreadyBoundException extends NameAlreadyBoundException
         implements LdapException
 {
+    public LdapNameAlreadyBoundException()
+    {
+        super();
+    }
+
+
+    public LdapNameAlreadyBoundException( String explanation )
+    {
+        super(explanation);
+    }
+
+
     /**
      * Always returns ResultCodeEnum.ENTRYALREADYEXISTS.
      *

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
Url: http://svn.apache.org/viewcvs/incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java?view=diff&rev=111641&p1=incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java&r1=111640&p2=incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java&r2=111641
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/name/LdapName.java
Sat Dec 11 21:36:49 2004
@@ -516,7 +516,9 @@
      */
     public Name getPrefix( int a_posn )
     {
-        return new LdapName( m_list.subList( size() - a_posn, size() ) ) ;
+        ArrayList list = new ArrayList();
+        list.addAll( m_list.subList( size() - a_posn, size() ) );
+        return new LdapName( list ) ;
     }
 
 
@@ -536,7 +538,9 @@
      */
     public Name getSuffix( int a_posn )
     {
-        return new LdapName( m_list.subList( a_posn, m_list.size() ) ) ;
+        ArrayList list = new ArrayList();
+        list.addAll( m_list.subList( a_posn, m_list.size() ) );
+        return new LdapName( list ) ;
     }
 
 

Mime
View raw message