[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3392) Reflections.getGetterMethod fails for boolean properties
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue Sep 16 08:26:21 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated JBSEAM-3392:
------------------------------
Fix Version/s: 2.1.0.CR1
> Reflections.getGetterMethod fails for boolean properties
> --------------------------------------------------------
>
> Key: JBSEAM-3392
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3392
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.2.GA, 2.0.2.SP1, 2.0.3.CR1, 2.1.0.A1, 2.1.0.BETA1
> Environment: JBoss Developer Studio 1.1.0.CR1, Ubuntu 8.04
> Reporter: Tim Otten
> Fix For: 2.1.0.CR1
>
>
> In the class org.jboss.seam.util.Reflections, the getGetterMethod fails to recognize getter methods which are prefixed with "is". The offending test is this:
> if ( methodName.matches("^(get|is).*") && method.getParameterTypes().length==0 )
> {
> if ( Introspector.decapitalize( methodName.substring(3) ).equals(name) )
> {
> return method;
> }
> }
> "get" has 3 characters, but "is" has only 2 characters.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list