[
https://issues.apache.org/jira/browse/AXIS2-5435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497870#comment-13497870
]
Andreas Veithen commented on AXIS2-5435:
----------------------------------------
@Thomas: The point is that I still don't see any good argument why autoboxing
would change the interpretation of the JavaBeans spec. Interestingly the
authors of the JAXB specification didn't feel any need to do that either. >From
section 8.9 of the JAXB 2.1 spec:
[quote]
The following must be mapped (subject to the mapping constraints listed below):
• read/write property as identified by java.beans.Introspector.getBeanInfo with
its nearest XML-bound superclass as the stopClass.
• non static, non transient field of all the ancestors up to the stopClass (but
excluding the stopClass itself); if annotated with @XmlAttribute, then static
final field must be mapped (informally this maps to a fixed attribute but this
is formally specified in the mapping tables below).
[/quote]
Not to mention that there are lots of other frameworks that use
Introspector.getBeanInfo and that don't recognize Boolean is<PropertyName> as a
getter method. Why would we do things differently?
It should also be noted that changing that behavior would require writing a
custom introspector to replace the usage of java.beans.Introspector. That has a
high cost in terms of effort required to do that and even more in terms of the
risk of introducing regressions.
@Shameera: I would expect that the problem is not limited to beans with Boolean
is<PropertyName> properties but occurs for any bean having a write-only
property. Axis2 should indeed handle that case (and also the read-only case)
gracefully.
> Axis2 BeanUtil doesn't appear to support is/has getter forms for fields.
> -------------------------------------------------------------------------
>
> Key: AXIS2-5435
> URL: https://issues.apache.org/jira/browse/AXIS2-5435
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.6.2
> Environment: Windows 7 64. Java 1.7
> Reporter: Thomas Valine
> Labels: adb, databinding
>
> Binding POJO's having boolean getter methods of the form isBool, hasBool
> doesn't appear to work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]