cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation JXTemplateGenerator.java
Date Thu, 16 Oct 2003 14:23:01 GMT
bruno       2003/10/16 07:23:01

  Modified:    src/java/org/apache/cocoon/generation
                        JXTemplateGenerator.java
  Log:
  Using JXTemplate as transformer gave a java.lang.VerifyError at runtime,
  apparently caused by accessing gen.xmlConsumer directly.
  
  Revision  Changes    Path
  1.13      +6 -1      cocoon-2.1/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
  
  Index: JXTemplateGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JXTemplateGenerator.java	15 Oct 2003 14:12:45 -0000	1.12
  +++ JXTemplateGenerator.java	16 Oct 2003 14:23:01 -0000	1.13
  @@ -367,6 +367,11 @@
       
       private static final Locator NULL_LOCATOR = new LocatorImpl();
   
  +    private XMLConsumer getConsumer()
  +    {
  +        return this.xmlConsumer;
  +    }
  +
       /**
        * Jexl Introspector that supports Rhino JavaScript objects
        * as well as Java Objects
  @@ -2483,7 +2488,7 @@
   
               public void endDocument() throws SAXException {
                   super.endDocument();
  -                gen.execute(gen.xmlConsumer,
  +                gen.execute(gen.getConsumer(),
                               gen.getJexlContext(),
                               gen.getJXPathContext(),
                               getStartEvent(), null);
  
  
  

Mime
View raw message