Return-Path: Delivered-To: apmail-jakarta-oro-dev-archive@jakarta.apache.org Received: (qmail 60573 invoked by uid 500); 14 Apr 2001 06:57:40 -0000 Mailing-List: contact oro-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: oro-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list oro-dev@jakarta.apache.org Delivered-To: moderator for oro-dev@jakarta.apache.org Received: (qmail 8359 invoked from network); 14 Apr 2001 01:16:17 -0000 Date: Fri, 13 Apr 2001 18:09:12 -0700 (PDT) Message-Id: <200104140109.SAA19137@nagoya-a.betaversion.org> From: bugzilla@apache.org To: oro-dev@jakarta.apache.org Cc: Subject: [Bug 1339] New - StringIndexOutOfBoundsException During Simple Perl5Util.split X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1339 *** shadow/1339 Fri Apr 13 18:09:12 2001 --- shadow/1339.tmp.19134 Fri Apr 13 18:09:12 2001 *************** *** 0 **** --- 1,27 ---- + +============================================================================+ + | StringIndexOutOfBoundsException During Simple Perl5Util.split | + +----------------------------------------------------------------------------+ + | Bug #: 1339 Product: ORO | + | Status: NEW Version: 2.0.1 | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: | + | Priority: Component: Main | + +----------------------------------------------------------------------------+ + | Assigned To: oro-dev@jakarta.apache.org | + | Reported By: ckasow@entigen.com | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + This code snippit throws the StringIndexOutOfBoundsException shown below: + + String txt = "a;b;c;d"; + java.util.LinkedList list = new java.util.LinkedList(); + Perl5Util perlUtil = new Perl5Util(); + perlUtil.split(list,"m/\\s*;\\s*/",txt); + + java.lang.StringIndexOutOfBoundsException: String index out of range: -3 + at java.lang.String.substring(String.java:1503) + at org.apache.oro.text.perl.Perl5Util.split(Perl5Util.java:768) + at org.apache.oro.text.perl.Perl5Util.split(Perl5Util.java:796)