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 15321] New: - wordWrap throws StringArrayIndexOutOfBoundsExceptions
Date Thu, 12 Dec 2002 16:54:12 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=15321>.
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=15321

wordWrap throws StringArrayIndexOutOfBoundsExceptions

           Summary: wordWrap throws StringArrayIndexOutOfBoundsExceptions
           Product: Taglibs
           Version: 1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: String Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: rtaylor@newatlanta.com


wordWrap seems to be blowing up if the tag attempts to wrap a string that
contains a newline character as the 81st character. It will not blow up
if the 81st character is not a new line character.

This is my usage:
<string:wordWrap><bean:write name="form" property="body" 
ignore="true"/></string:wordWrap>

Partial stack trace:
2120: java.lang.StringIndexOutOfBoundsException: String index out of range: 80
2120:   at java.lang.String.charAt(String.java:455)
2120:   at org.apache.taglibs.string.util.StringW.wordWrap(StringW.java:181)
2120:   at org.apache.taglibs.string.WordWrapTag.changeString
(WordWrapTag.java:159)
2120:   at org.apache.taglibs.string.StringTagSupport.doEndTag
(StringTagSupport.java:135)

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


Mime
View raw message