]
Pete Muir reassigned JBSEAM-3392:
---------------------------------
Assignee: Pete Muir
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
Assignee: Pete Muir
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: