axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5435) Axis2 BeanUtil doesn't appear to support is/has getter forms for fields.
Date Thu, 15 Nov 2012 09:18:13 GMT


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:

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

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

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:
>             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:

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

View raw message