[
https://issues.apache.org/jira/browse/AXIS2-5435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498177#comment-13498177
]
Thomas Valine commented on AXIS2-5435:
--------------------------------------
public Boolean isValue(){
return value;
}
public boolean isValue(){
return value;
}
Are considered the same signature by the compiler. JAXB was consistent with
this and now is not. I'm arguing that the implementations of the bean
introspector and jaxb are inconsistent with this now ( but once were consistent
). If the compiler considers them identical, then why shouldn't any other
framework/api, etc... The truth is the compiler treats them the same, the
javabeans spec doesn't exclude it explicitly and furthermore can be interpreted
to include it implicitly by virtue of it being written prior to autoboxing. I
further assert that the introspector is just plain wrong, and JAXB made a bad
decision to reverse it's original behaviour.
All that being said, AXIS2 is not beholden to JAXB/Introspector or any other
piece of software. We are free to choose. Let me put it this way. The
compiler considers the signatures the same. Ergo, they can never exist
together in a POJO to begin with. So there is no exposure to failure due to
confusing the two forms. That being said, why not support this feature other
than for the reasons that A) someone else doesn't and B) it's more work?
Give me a compelling argument why not to support it and I will tip my hat to
you.
Now, I do prefer one outcome over the other. But you do need to choose. Can
you please adjudicate a concrete course of action?
Is this fix? fix in next release? will not fix?
> 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]