It would be great if you could include a text description of the bug that you are 
fixing in the checkin comment.

In particular, the link below just links to a bug attachement... :-)

--
Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 20, 2003 1:30 PM
To: [EMAIL PROTECTED]
Subject: 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;
  
  
  

Reply via email to