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 jm...@apache.org on 2003/02/20 19:29:36 UTC

cvs commit: xml-axis/java/src/org/apache/axis/utils BeanUtils.java

jmsnell     2003/02/20 10:29:36

  Modified:    java/src/org/apache/axis/utils BeanUtils.java
  Log:
  FIX http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=4937
  
  Revision  Changes    Path
  1.19      +8 -6      xml-axis/java/src/org/apache/axis/utils/BeanUtils.java
  
  Index: BeanUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/BeanUtils.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- BeanUtils.java	8 Jan 2003 16:06:28 -0000	1.18
  +++ BeanUtils.java	20 Feb 2003 18:29:36 -0000	1.19
  @@ -113,24 +113,26 @@
                   new PrivilegedAction() {
                       public Object run() {
                           PropertyDescriptor[] result = null;
  +// START FIX http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=4937
                           try {
                               // privileged code goes here
  -                            Class superClass = secJavaType.getSuperclass();
  -                            if(superClass == Exception.class) {
  -                                result = Introspector.
  -                                        getBeanInfo(secJavaType,Exception.class).
  -                                        getPropertyDescriptors();
  -                            } else if (AxisFault.class.isAssignableFrom(secJavaType)) {
  +                            if (AxisFault.class.isAssignableFrom(secJavaType)) {
                                   // Don't include AxisFault data
                                   result = Introspector.
                                           getBeanInfo(secJavaType,AxisFault.class).
                                           getPropertyDescriptors();
  +                            } else if (Throwable.class.isAssignableFrom(secJavaType)) {
  +                                // Don't include Throwable data
  +                                result = Introspector.
  +                                        getBeanInfo(secJavaType,Throwable.class).
  +                                        getPropertyDescriptors();
                               } else {
                                   // privileged code goes here
                                   result = Introspector.
                                           getBeanInfo(secJavaType).
                                           getPropertyDescriptors();
                               }
  +// END FIX http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=4937
                           } catch (java.beans.IntrospectionException Iie) {
                           }
                           return result;