jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45433] New: Unstandard <size>-Tag doesn't accept arrays
Date Fri, 18 Jul 2008 13:07:49 GMT

           Summary: Unstandard <size>-Tag doesn't accept arrays
           Product: Taglibs
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Sandbox Taglibs
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: o.dr@gmx.de

We are still using J2EE 1.3 and use "unstandard-taglibs".
The Tag <size> doesn't work with arrays - it returns -1.

Error is in the class "org.apache.taglibs.unstandard.SizeTag":

// Error
if(target instanceof Collection) { 
     result = ( (Object[])target ).length;

// Bugfix  
if(target.isArray) { 
     result = ( (Object[])target ).length;

And the casting (Object[]) doesn't works with primitive arrays (int[],
boolean[], etc).

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org

View raw message