DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13619>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13619

TagInfo.getAttributes returns a zero-length array instead of null if a tag has not 
defined attributes.

           Summary: TagInfo.getAttributes returns a zero-length array
                    instead of null if a tag has not defined attributes.
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


According to the javadocs, TagInfo.getAttributes must return null if the tag in
question is defined with no attributes.

Looking at line 280 of o.a.j.c.TagFileProcessor.java, the size of a vector is
used to initialize the size of the array, so if the even if the vector has no
elements the array is initialized and passed to the constructor of TagInfo.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to