commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wer...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/define BeanTag.java
Date Mon, 15 Jul 2002 23:24:32 GMT
werken      2002/07/15 16:24:32

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/define
                        BeanTag.java
  Log:
  A wee bit more unwrapping required.
  
  Revision  Changes    Path
  1.4       +15 -1     jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/define/BeanTag.java
  
  Index: BeanTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/define/BeanTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BeanTag.java	15 Jul 2002 21:34:53 -0000	1.3
  +++ BeanTag.java	15 Jul 2002 23:24:32 -0000	1.4
  @@ -76,6 +76,7 @@
   import org.apache.commons.jelly.Script;
   import org.apache.commons.jelly.TagSupport;
   import org.apache.commons.jelly.XMLOutput;
  +import org.apache.commons.jelly.JellyException;
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  @@ -136,7 +137,20 @@
                   methodInvocationError(bean, method, e);
               }
               catch (InvocationTargetException e) {
  -                methodInvocationError(bean, method, e);
  +                // methodInvocationError(bean, method, e);
  +
  +                Throwable inner = e.getTargetException();
  +
  +                inner.fillInStackTrace();
  +
  +                if ( inner instanceof Exception )
  +                {
  +                    throw (Exception) inner;
  +                }
  +                else
  +                {
  +                    throw new JellyException( inner );
  +                }
               }
           }
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message