[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3392) Reflections.getGetterMethod fails for boolean properties

Tim Otten (JIRA) jira-events at lists.jboss.org
Mon Sep 8 02:29:49 EDT 2008


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.1.0.BETA1, 2.1.0.A1, 2.0.3.CR1, 2.0.2.SP1, 2.0.2.GA
         Environment: JBoss Developer Studio 1.1.0.CR1, Ubuntu 8.04
            Reporter: Tim Otten


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