[seam-issues] [JBoss JIRA] (SOLDER-298) MethodPropertyImpl does not work for primitive boolean

Jason Porter (Resolved) (JIRA) jira-events at lists.jboss.org
Fri Dec 2 18:57:40 EST 2011


     [ https://issues.jboss.org/browse/SOLDER-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Porter resolved SOLDER-298.
---------------------------------

    Resolution: Done

    
> MethodPropertyImpl does not work for primitive boolean
> ------------------------------------------------------
>
>                 Key: SOLDER-298
>                 URL: https://issues.jboss.org/browse/SOLDER-298
>             Project: Solder
>          Issue Type: Bug
>          Components: Core, Reflections
>    Affects Versions: 3.1.0.Beta4
>         Environment: AS 7.02, java 1.6.0_25, os: Windows7
>            Reporter: Lukasz Kaleta
>              Labels: boolean,, primitive, property
>             Fix For: 3.1.0.Final
>
>
> method.getReturnType() != Boolean.class -> true
> method.getReturnType().isPrimitive() -> true
> method.getRetunType = Class("boolean")
> if (method.getReturnType() != Boolean.class || !method.getReturnType().isPrimitive()) {
>  throw new IllegalArgumentException("Invalid accessor method, must return boolean primitive if starts with 'is'. Method: " + method);
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list