tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13619] New: - TagInfo.getAttributes returns a zero-length array instead of null if a tag has not defined attributes.
Date Mon, 14 Oct 2002 22:57:20 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: Ryan.Lubke@Sun.COM


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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message