Re: ArrayIndexOutOfBoundsException when invoking matcher.contains(str, pattern)

"Daniel F. Savarese" <[email protected]> Tue, 27 Oct 2009 13:00:50 -0400
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
In message <[email protected]>, Vil
mantas Baranauskas writes:
>I was using single unsynchronized Perl5Matcher instance and javadoc tells t=
>o use single instance per thread or synchronize.

In addition, if you share a Perl5Pattern instance between Perl5Matcher
instances in different threads, be sure to compile the pattern with
Perl5Compiler.READ_ONLY_MASK.

daniel