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: [EMAIL PROTECTED]                                   |
+ |  Reported By: [EMAIL PROTECTED]                                           |
+ |      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)

Reply via email to