You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2009/10/27 18:00:50 UTC

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

In message <02...@mx01.ic-consult.de>, 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



---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org