directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1087786 - in /directory/shared/trunk/ldap/model/src: main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java test/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttributeTest.java
Date Fri, 01 Apr 2011 16:24:46 GMT
Author: elecharny
Date: Fri Apr  1 16:24:46 2011
New Revision: 1087786

URL: http://svn.apache.org/viewvc?rev=1087786&view=rev
Log:
Fixed a serialization error (using read/write external)

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
    directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttributeTest.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java?rev=1087786&r1=1087785&r2=1087786&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultAttribute.java
Fri Apr  1 16:24:46 2011
@@ -124,7 +124,7 @@ public class DefaultAttribute implements
      * Create a new instance of a Attribute, without ID nor value.
      * Used by the serializer
      */
-    DefaultAttribute()
+    /* No protection*/ DefaultAttribute()
     {
     }
 

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttributeTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttributeTest.java?rev=1087786&r1=1087785&r2=1087786&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttributeTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/shared/ldap/model/entry/DefaultEntryAttributeTest.java
Fri Apr  1 16:24:46 2011
@@ -86,7 +86,7 @@ public class DefaultEntryAttributeTest
         try
         {
             oOut = new ObjectOutputStream( out );
-            oOut.writeObject( value );
+            value.writeExternal( oOut );
         }
         catch ( IOException ioe )
         {
@@ -124,7 +124,8 @@ public class DefaultEntryAttributeTest
         {
             oIn = new ObjectInputStream( in );
 
-            DefaultAttribute value = ( DefaultAttribute ) oIn.readObject();
+            DefaultAttribute value = new DefaultAttribute();
+            value.readExternal( oIn );
 
             return value;
         }



Mime
View raw message