luehe       2005/06/15 16:50:12

  Modified:    catalina/src/share/org/apache/catalina/session
                        StandardSession.java
  Log:
  Reverted the scope of readObject() and writeObject() from protected to
  private, in order to give subclasses an opportunity to implement their
  own.
  
  A class that wants to customize its Serialization must declare its
  readObject() and writeObject() with "private" scope.
  
  This won't be possible for subclasses of StandardSession.java, if the
  StandardSession.java superclass has already declared these methods with
  "protected" scope.
  
  Revision  Changes    Path
  1.59      +3 -3      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java
  
  Index: StandardSession.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- StandardSession.java      15 Jun 2005 23:41:25 -0000      1.58
  +++ StandardSession.java      15 Jun 2005 23:50:12 -0000      1.59
  @@ -1355,7 +1355,7 @@
        * @exception ClassNotFoundException if an unknown class is specified
        * @exception IOException if an input/output error occurs
        */
  -    protected void readObject(ObjectInputStream stream)
  +    private void readObject(ObjectInputStream stream)
           throws ClassNotFoundException, IOException {
   
           // Deserialize the scalar instance variables (except Manager)
  @@ -1422,7 +1422,7 @@
        *
        * @exception IOException if an input/output error occurs
        */
  -    protected void writeObject(ObjectOutputStream stream) throws IOException 
{
  +    private void writeObject(ObjectOutputStream stream) throws IOException {
   
           // Write the scalar instance variables (except Manager)
           stream.writeObject(new Long(creationTime));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to