[jboss-jira] [JBoss JIRA] Created: (JBAS-9301) JSTL empty operator not working with primitive arrays
Kevin Wimmer (JIRA)
jira-events at lists.jboss.org
Tue Apr 12 21:21:33 EDT 2011
JSTL empty operator not working with primitive arrays
-----------------------------------------------------
Key: JBAS-9301
URL: https://issues.jboss.org/browse/JBAS-9301
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-5.1.0.GA
Environment: (Sun) JDK 1.5.0_22
JBoss 5.1.0.GA
Windows XP SP2
Reporter: Kevin Wimmer
The condition below is not correctly evaluated:
<% int[] array = new int[0]; %>
<c:set var="array" value="<%= array %>" />
<c:choose>
<c:when test="${empty array}">EMPTY</c:when>
<c:otherwise>NOT EMPTY</c:otherwise>
</c:choose>
However, if you change the int array to an Integer array, the empty operator is evaluated correctly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list