jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1339] New - StringIndexOutOfBoundsException During Simple Perl5Util.split
Date Sat, 14 Apr 2001 01:09:12 GMT
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)

Mime
View raw message