cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation JXTemplate.java
Date Tue, 22 Apr 2003 23:38:39 GMT
coliver     2003/04/22 16:38:38

  Modified:    src/scratchpad/src/org/apache/cocoon/generation
                        JXTemplate.java
  Log:
  fixed compilation errors
  
  Revision  Changes    Path
  1.3       +11 -2     cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXTemplate.java
  
  Index: JXTemplate.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXTemplate.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JXTemplate.java	22 Apr 2003 20:03:43 -0000	1.2
  +++ JXTemplate.java	22 Apr 2003 23:38:38 -0000	1.3
  @@ -56,6 +56,7 @@
   import java.io.StringReader;
   import java.lang.reflect.Field;
   import java.lang.reflect.Method;
  +import java.lang.reflect.InvocationTargetException;
   import java.util.ArrayList;
   import java.util.HashMap;
   import java.util.Iterator;
  @@ -773,7 +774,11 @@
               }
               return expr;
           } catch (InvocationTargetException e) {
  -            throw e.getTargetException();
  +            Throwable t = e.getTargetException();
  +            if (t instanceof Exception) {
  +                throw (Exception)t;
  +            }
  +            throw (Error)t;
           }
       }
   
  @@ -792,7 +797,11 @@
               }
               return expr;
           } catch (InvocationTargetException e) {
  -            throw e.getTargetException();
  +            Throwable t = e.getTargetException();
  +            if (t instanceof Exception) {
  +                throw (Exception)t;
  +            }
  +            throw (Error)t;
           }
       }
   
  
  
  

Mime
View raw message