axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jabber W (JIRA)" <>
Subject [jira] Created: (AXIS2-3279) Axis2-1.3: BeanUtil: wrong xsi:type handling
Date Tue, 16 Oct 2007 16:19:50 GMT
Axis2-1.3: BeanUtil: wrong xsi:type handling

                 Key: AXIS2-3279
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.3
            Reporter: Jabber W
             Fix For: 1.3

In  the deserialize(Class beanClass,
                                  OMElement beanElement, 
                                  ObjectSupplier objectSupplier, 
                                  String arrayLocalName)
1.  there is a bug in the xsi:type hadnling (line 295) :
          String instanceTypeName = beanElement.getAttributeValue(new QName("type"))
                       -- which returns null when attribute supplied instead of  --
          String instanceTypeName  = 
As a result the supplied xsi:type is missed.  
BUT !!
2.  Though the attribute value was collected properly it's still buggish :
   the assumption that the xsi:type contains the java name is not justified (line 298): 
              beanClass = Loader.loadClass(beanClass.getClassLoader(), instanceTypeName) 
The xsi:type of course may be translated to appropriate class, but it shoudn't be the same.

All mentioned is highly important issue when the extender types are used.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message