Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 11924 invoked from network); 28 Jan 2003 22:53:12 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Jan 2003 22:53:12 -0000 Received: (qmail 14620 invoked by uid 97); 28 Jan 2003 22:54:23 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@nagoya.apache.org Received: (qmail 14254 invoked by uid 97); 28 Jan 2003 22:54:20 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 14172 invoked by uid 98); 28 Jan 2003 22:54:18 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Robert Taylor" To: "Tag Libraries Users List" Subject: RE: FW: String TagLib 1.0 wordWrap StringIndexArrayOutOfBoundsException (Bug#15321) Date: Tue, 28 Jan 2003 17:57:58 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N No worries. Thanks for a very useful tag library! robert -----Original Message----- From: Henri Yandell [mailto:bayard@generationjava.com] Sent: Tuesday, January 28, 2003 5:41 PM To: Tag Libraries Users List Subject: Re: FW: String TagLib 1.0 wordWrap StringIndexArrayOutOfBoundsException (Bug#15321) Nope. I'll get on it now. Sorry about that. Hen On Tue, 28 Jan 2003, Robert Taylor wrote: > Has anyone addressed this bug yet? > > robert > > -----Original Message----- > From: Robert Taylor [mailto:rtaylor@newatlanta.com] > Sent: Thursday, December 12, 2002 11:58 AM > To: Tag Libraries Users List > Subject: RE: String TagLib 1.0 wordWrap > StringIndexArrayOutOfBoundsException > > > Okay. I entered it as a bug. See bug #15321. > > robert > > -----Original Message----- > From: Henri Yandell [mailto:bayard@generationjava.com] > Sent: Thursday, December 12, 2002 11:24 AM > To: Tag Libraries Users List > Subject: Re: String TagLib 1.0 wordWrap > StringIndexArrayOutOfBoundsException > > > > Hey Robert, > > This is my fault, I need to somehow document that the wordWrap method is a > bit suss. Certain combinations of characters in different positions can > make it blow up, while the rest of the time it sails on through. It's > definitely nothing you are doing but just dodginess in the underlying > word-wrapping code. > > If you could push this into bugzill as a bug, hopefully it'll help kick me > into refactoring and unit-testing that method. > > Most of String-taglib is in Commons Lang now [the underlying code], so > it's well unit-tested there, but wordWrap and a couple of other methods > are not. > > [quoteRegularExpression, wordWrap and truncateNicely] > [metaphone and soundex are in Commons Codec, but not released there yet] > [xml functions are not in Commons Lang] > > Sorry for the bugs, coder's fault. > > Hen > > On Thu, 12 Dec 2002, Robert Taylor wrote: > > > I just downloaded the String Tag Lib 1.0 binaries and started using the > > wordWrap functionality. > > > > It 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: > > > ignore="true"/> > > > > 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:13 > > 5) > > > > Has anyone else had this problem. I search bugzilla and didn't find any > bugs > > mentioned. > > > > > > robert > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: