[richfaces-issues] [JBoss JIRA] Updated: (RF-10004) CDK: isEmpty method is generated incorrectly

Alexander Smirnov (JIRA) jira-events at lists.jboss.org
Wed Feb 16 19:11:14 EST 2011


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

Alexander Smirnov updated RF-10004:
-----------------------------------

     Original Estimate: 0 minutes
    Remaining Estimate: 0 minutes


> CDK: isEmpty method is generated incorrectly
> --------------------------------------------
>
>                 Key: RF-10004
>                 URL: https://issues.jboss.org/browse/RF-10004
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>    Affects Versions: 4.0.0.Milestone5
>            Reporter: Andrey Markhel
>            Assignee: Alexander Smirnov
>            Priority: Critical
>             Fix For: 4.0.0.CR1
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> When I use expression #{empty ""} on component.template.xml, CDK generate the following:
> private static boolean isEmpty(Object object) 
>  {
> 		return object == null;
> 	}
> and isEmpty("") = false, but it is incorrect.
> I think isEmpty method should return true when incoming string doesn't contain any characters except spaces.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list