From: fhanik Date: Thu, 17 Apr 2008 19:20:00 +0000 (+0000) Subject: fix override of methods from standardsession X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1220ced6131186ba06a1659b725c0ae9b357de45;p=tomcat7.0 fix override of methods from standardsession git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@649238 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/ha/session/DeltaSession.java b/java/org/apache/catalina/ha/session/DeltaSession.java index 92e5993ec..8700778dd 100644 --- a/java/org/apache/catalina/ha/session/DeltaSession.java +++ b/java/org/apache/catalina/ha/session/DeltaSession.java @@ -22,6 +22,8 @@ import java.io.IOException; import java.io.NotSerializableException; import java.io.ObjectInput; import java.io.ObjectOutput; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; import java.io.Serializable; import java.security.Principal; import java.util.ArrayList; @@ -446,6 +448,10 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus * @exception IOException * if an input/output error occurs */ + @Override + public void readObjectData(ObjectInputStream stream) throws ClassNotFoundException, IOException { + readObject((ObjectInput)stream); + } public void readObjectData(ObjectInput stream) throws ClassNotFoundException, IOException { readObject(stream); } @@ -461,6 +467,10 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus * @exception IOException * if an input/output error occurs */ + @Override + public void writeObjectData(ObjectOutputStream stream) throws IOException { + writeObjectData((ObjectOutput)stream); + } public void writeObjectData(ObjectOutput stream) throws IOException { writeObject(stream); } @@ -578,6 +588,11 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus * @exception IOException * if an input/output error occurs */ + @Override + protected void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException { + readObject((ObjectInput)stream); + } + private void readObject(ObjectInput stream) throws ClassNotFoundException, IOException { // Deserialize the scalar instance variables (except Manager) @@ -654,6 +669,10 @@ public class DeltaSession extends StandardSession implements Externalizable,Clus * @exception IOException * if an input/output error occurs */ + protected void writeObject(ObjectOutputStream stream) throws IOException { + writeObject((ObjectOutput)stream); + } + private void writeObject(ObjectOutput stream) throws IOException { // Write the scalar instance variables (except Manager) stream.writeObject(new Long(creationTime));