You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/08/15 15:24:47 UTC

cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser BeanPropertyTarget.java

dims        2002/08/15 06:24:47

  Modified:    java/src/org/apache/axis/encoding/ser
                        BeanPropertyTarget.java
  Log:
  Fix for 11513 - Return the InvocationTargetException.getTargetException()
  
  Revision  Changes    Path
  1.14      +7 -0      xml-axis/java/src/org/apache/axis/encoding/ser/BeanPropertyTarget.java
  
  Index: BeanPropertyTarget.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/BeanPropertyTarget.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- BeanPropertyTarget.java	30 Jul 2002 06:16:04 -0000	1.13
  +++ BeanPropertyTarget.java	15 Aug 2002 13:24:47 -0000	1.14
  @@ -63,6 +63,7 @@
   import org.apache.commons.logging.Log;
   
   import org.xml.sax.SAXException;
  +import java.lang.reflect.InvocationTargetException;
   
   /**
    * Class which knows how to update a bean property
  @@ -126,6 +127,12 @@
                                                          valueType,
                                                          field,
                                                          pd.getType().getName()}));
  +                }
  +                if(ex instanceof InvocationTargetException) {
  +                    Throwable t = ((InvocationTargetException)ex).getTargetException();
  +                    if( t != null) {
  +                        throw new SAXException(t.getMessage());
  +                    }
                   }
                   throw new SAXException(ex);
               }