You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/10/15 00:57:20 UTC
DO NOT REPLY [Bug 13619] New: -
TagInfo.getAttributes returns a zero-length array instead of null if a tag has not defined attributes.
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>