directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r924927 - /directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Date Thu, 18 Mar 2010 18:12:41 GMT
Author: elecharny
Date: Thu Mar 18 18:12:41 2010
New Revision: 924927

URL: http://svn.apache.org/viewvc?rev=924927&view=rev
Log:
Inverted two operations accordingly to the if()

Modified:
    directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java

Modified: directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java?rev=924927&r1=924926&r2=924927&view=diff
==============================================================================
--- directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
(original)
+++ directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Thu Mar 18 18:12:41 2010
@@ -238,11 +238,11 @@ public abstract class ServerDirContext e
         {
             if ( name instanceof DN )
             {
-                doModifyOperation( buildTarget( DN.fromName( name ) ), newMods );
+                doModifyOperation( buildTarget( (DN)name ), newMods );
             }
             else
             {
-                doModifyOperation( buildTarget( (DN)name ), newMods );
+                doModifyOperation( buildTarget( DN.fromName( name ) ), newMods );
             }
         }
         catch( Exception e )



Mime
View raw message