jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22997] - RE throws ArrayIndexOutOfBounds when grouping repetition is >= 16
Date Tue, 09 Sep 2003 01:33:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22997>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22997

RE throws ArrayIndexOutOfBounds when grouping repetition is >= 16

vgritsenko@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From vgritsenko@apache.org  2003-09-09 01:33 -------
Sorry, can't reproduce. I patched RETest:

Index: src/java/org/apache/regexp/RETest.java
===================================================================
RCS file: /home/cvs/jakarta-regexp/src/java/org/apache/regexp/RETest.java,v
retrieving revision 1.7
diff -u -r1.7 RETest.java
--- src/java/org/apache/regexp/RETest.java      7 Sep 2003 15:04:14 -0000       1.7
+++ src/java/org/apache/regexp/RETest.java      9 Sep 2003 01:27:56 -0000
@@ -619,5 +619,8 @@
             fail("Wrong subst() result: " + s);
         }

+        r = new RE("([0-9]+ ){17}");
+        System.out.println(r.match("1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 "));
+        System.exit(0);
     }
 }


Then, I ran "ant test". Have not seen any exception and got "true" on the
console. I tested against CVS version.

Please provide more details on how to reproduce this issue.

Vadim

Mime
View raw message