sboag       00/12/20 21:52:22

  Modified:    java/src/org/apache/xalan/templates StylesheetRoot.java
  Log:
  Changed the composed variables to non-transient.  I'm not totally
  sure why Gary had these listed as transient.  Perhaps he was thinking
  that we would recompose on readObject?  I was thinking the opposite,
  that we would throw away all uncomposed stuff if you serialized.
  In any case, this seems to make serialization work OK, though
  surely not optimized for storage space!!!
  
  Revision  Changes    Path
  1.35      +8 -7      
xml-xalan/java/src/org/apache/xalan/templates/StylesheetRoot.java
  
  Index: StylesheetRoot.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/StylesheetRoot.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- StylesheetRoot.java       2000/12/18 14:07:38     1.34
  +++ StylesheetRoot.java       2000/12/21 05:52:21     1.35
  @@ -312,7 +312,7 @@
      * import precedence will be at element 0.  The one with the lowest
      * import precedence will be at element length - 1.
      */
  -  private transient StylesheetComposed[] m_globalImportList;
  +  private StylesheetComposed[] m_globalImportList;
   
     /**
      * Add the imports in the given sheet to the working importList vector.
  @@ -475,7 +475,7 @@
      * Composed set of all included and imported attribute set properties.
      * Each entry is a vector of ElemAttributeSet objects.
      */
  -  private transient Hashtable m_attrSets;
  +  private Hashtable m_attrSets;
   
     /**
      * Recompose the attribute-set declarations.
  @@ -515,7 +515,7 @@
     /**
      * Table of DecimalFormatSymbols, keyed by QName.
      */
  -  private transient Hashtable m_decimalFormatSymbols;
  +  private Hashtable m_decimalFormatSymbols;
   
     /**
      * Recompose the decimal-format declarations.
  @@ -577,7 +577,7 @@
      * A list of all key declarations visible from this stylesheet and all
      * lesser stylesheets.
      */
  -  private transient Vector m_keyDecls;
  +  private Vector m_keyDecls;
   
     /**
      * Recompose the key declarations.
  @@ -603,7 +603,7 @@
     /**
      * Composed set of all namespace aliases.
      */
  -  private transient Hashtable m_namespaceAliasComposed;
  +  private Hashtable m_namespaceAliasComposed;
   
     /**
      * Recompose the namespace-alias declarations.
  @@ -634,7 +634,7 @@
     /**
      * The "xsl:template" properties.
      */
  -  private transient TemplateList m_templateList;
  +  private TemplateList m_templateList;
   
     /**
      * Recompose the template declarations.
  @@ -714,8 +714,9 @@
     
     /**
      * Composed set of all variables and params.
  +   * (note to self: why were these marked transient???  -sb)
      */
  -  private transient Vector m_variables;
  +  private Vector m_variables;
   
     /**
      * Recompose the top level variable and parameter declarations.
  
  
  

Reply via email to