You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by bu...@apache.org on 2001/04/14 03:09:12 UTC

[Bug 1339] New - StringIndexOutOfBoundsException During Simple Perl5Util.split

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)