You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2004/06/18 18:11:31 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/dtd DTDGrammar.java

mrglavas    2004/06/18 09:11:30

  Modified:    java/src/org/apache/xerces/impl/dtd DTDGrammar.java
  Log:
  An anonymous class DTDGrammar$1.class seems to come
  from an argument to the init method of ChildrenList. This class
  has been declared to be 'private static' and does not declare 
  any constructors so a default constructor is implicitily provided.
  According to the Java Language Specification [1], this default 
  constructor will be private.  DTDGrammar calls this private 
  constructor to create a ChildrenList.
  
  DTDGrammar$1.class which is generated by the compiler
  appearently violates the VM spec [2]. Adding a public
  no args constructor to ChildrenList to eliminate this
  anonymous class.
  
  [1] http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#16823
  [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=67600
  
  Revision  Changes    Path
  1.29      +8 -2      xml-xerces/java/src/org/apache/xerces/impl/dtd/DTDGrammar.java
  
  Index: DTDGrammar.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dtd/DTDGrammar.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- DTDGrammar.java	28 Mar 2004 04:06:46 -0000	1.28
  +++ DTDGrammar.java	18 Jun 2004 16:11:30 -0000	1.29
  @@ -2574,7 +2574,7 @@
        * @author Eric Ye, IBM
        */
       private static class ChildrenList {
  -        
  +       
           //
           // Data
           //
  @@ -2591,6 +2591,12 @@
   
           /** Left and right children types. */
           public int[] type = new int[2];
  +        
  +        //
  +        // Constructors
  +        //
  +        
  +        public ChildrenList () {}
   
       } // class ChildrenList
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org