Re: ArrayIndexOutOfBoundsException

Mario Diana <[email protected]> Wed, 30 Apr 2003 22:01:43 -0400
Newsgroups gmane.comp.jakarta.regexp.user
Message-ID <[email protected]>
On Thursday, April 17, 2003, at 02:39  PM, Adam Jack wrote:

> I have a regular expression that compiles, yet crashes on me with 
> certain
> content (and not with other).
>
> [...]
>
> Below is the stack trace.
>
> [...]
>
> java.lang.ArrayIndexOutOfBoundsException: 16 [...]

There's a bug in the implementation that's been fixed in the source 
files on the CVS system. There's been no build for it, so you'll have to 
download the latest files and build them yourself.

They build with Ant, so get that if you don't have it.

I did this back in November after experiencing the same problem. I think 
I found the solution in the archives of this list -- you can search to 
confirm if you like. The problem stems from the "non-greedy" 
symbol ("?").

I also remember reading that someone was going to build the latest CVS 
files into a distribution when they got the time, and I'm wondering if 
that's still true.

Good luck!

Mario Diana