directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r289630 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/UserClass.java
Date Fri, 16 Sep 2005 18:48:42 GMT
Author: akarasulu
Date: Fri Sep 16 11:48:39 2005
New Revision: 289630

URL: http://svn.apache.org/viewcvs?rev=289630&view=rev
Log:
Fixing bug reported by Ersin Er due to wrong reference to 
the Name class in instanceof.

Modified:
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/UserClass.java

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/UserClass.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/UserClass.java?rev=289630&r1=289629&r2=289630&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/UserClass.java
(original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/UserClass.java
Fri Sep 16 11:48:39 2005
@@ -74,7 +74,7 @@
             for( Iterator i = names.iterator(); i.hasNext(); ) 
             {
                 Object val = i.next();
-                if( !( val instanceof Name ) )
+                if( !( val instanceof javax.naming.Name ) )
                 {
                     throw new IllegalArgumentException( "names contains a wrong element."
);
                 }



Mime
View raw message