jkesselm    00/10/23 08:24:08

  Modified:    java/src/org/apache/xalan/utils ObjectPool.java QName.java
  Log:
  Serializability clean-up and jarfile generation
  
  Revision  Changes    Path
  1.3       +1 -1      xml-xalan/java/src/org/apache/xalan/utils/ObjectPool.java
  
  Index: ObjectPool.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/utils/ObjectPool.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ObjectPool.java   2000/07/05 14:44:01     1.2
  +++ ObjectPool.java   2000/10/23 15:24:06     1.3
  @@ -2,7 +2,7 @@
   
   import java.util.*;
   
  -public class ObjectPool
  +public class ObjectPool implements java.io.Serializable
   {
     private final Class objectType;
     private final Vector freeStack;
  
  
  
  1.6       +10 -0     xml-xalan/java/src/org/apache/xalan/utils/QName.java
  
  Index: QName.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/utils/QName.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- QName.java        2000/10/13 02:33:14     1.5
  +++ QName.java        2000/10/23 15:24:06     1.6
  @@ -154,6 +154,7 @@
     
     /**
      * Construct a QName from a namespace and a local name.
  +   * TODO: Discards the ns. Is that really intended???
      */
     public QName(String ns, String localName)
     {
  @@ -332,4 +333,13 @@
                : this._localName;
     }
   
  +  /** Serializable objects seem to require a public no-args constructor.
  +   * Nobody else will be using it, and the object will be promptly 
  +   * overwritten. Should this be putting the object in a recognizable
  +   * "You shouldn't have done that" state?
  +   */
  +  public QName()
  +  { super();
  +     /* Deserializer will run after this to fill in the fields */ 
  +  }
   }
  
  
  

Reply via email to