Update of /var/cvs/src/org/mmbase/security/implementation/context
In directory james.mmbase.org:/tmp/cvs-serv8505

Modified Files:
        ContextUserContext.java 
Log Message:
changed serialization a bit, because it did not work correctly (identifier of 
super was not serialized)


See also: 
http://cvs.mmbase.org/viewcvs/src/org/mmbase/security/implementation/context


Index: ContextUserContext.java
===================================================================
RCS file: 
/var/cvs/src/org/mmbase/security/implementation/context/ContextUserContext.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- ContextUserContext.java     18 Jul 2006 12:46:05 -0000      1.11
+++ ContextUserContext.java     3 Nov 2008 17:35:00 -0000       1.12
@@ -20,24 +20,24 @@
  * this is possible.
  *
  * @author Eduard Witteveen
- * @version $Id: ContextUserContext.java,v 1.11 2006/07/18 12:46:05 michiel 
Exp $
+ * @version $Id: ContextUserContext.java,v 1.12 2008/11/03 17:35:00 michiel 
Exp $
  */
 public class ContextUserContext extends BasicUser implements 
java.io.Serializable {
     private static final Logger   log = 
Logging.getLoggerInstance(ContextUserContext.class);
-    private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 2L;
 
     private String  username;
     private Rank    rank;
     private long    key;
     /** The SecurityManager, who (eventually) created this instance */
-    protected MMBaseCop manager;
+    protected transient MMBaseCop manager;
 
     public ContextUserContext(String username, Rank rank, long key, MMBaseCop 
manager, String app) {
         super(app);
         this.rank = rank;
         this.username = username;
         this.key = key;
-        this.manager=manager;
+        this.manager = manager;
     }
 
     public String getIdentifier() {
@@ -65,17 +65,6 @@
         return key;
     }
 
-    private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
-        username = in.readUTF();
-        rank = (Rank)in.readObject();
-        key = in.readLong();
-    }
-
-    private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
-        out.writeUTF(username);
-        out.writeObject(rank);
-        out.writeLong(key);
-    }
 
     public boolean equals(Object o) {
         if (o instanceof ContextUserContext) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to