------- Comment #1 from konqueror at gmx dot de 2006-02-08 17:11 ------- Subject: Re: New: Exception when compiling valid regex pattern
On Wed, Feb 08, 2006 at 05:03:48PM -0000, green at redhat dot com wrote: > The azureus developers identified a regex failure that is causing trouble... > > $ cat /tmp/ar.java > import java.util.regex.*; > > public class ar > { > public static void main (String args[]) > { > Pattern p = Pattern.compile ("(?i)yoda"); > } > } > $ gcj -C ar.java > $ gij ar > Exception in thread "main" java.util.regex.PatternSyntaxException: At position > 1 in regular expression pattern: > quantifier (?*+{}) without preceding token > (?i)yoda > ^ > at java.util.regex.Pattern.Pattern(java.lang.String, int) > (/usr/lib/libgcj.so.6.0.0) > at java.util.regex.Pattern.compile(java.lang.String, int) > (/usr/lib/libgcj.so.6.0.0) > at java.util.regex.Pattern.compile(java.lang.String) > (/usr/lib/libgcj.so.6.0.0) > at ar.main(java.lang.String[]) (Unknown Source) > at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) > at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) > > (Yes, I ran this again 4.0, but the same thing happens in 4.1). With GNU classpath CVS HEAD and jamvm 1.4.2 this throws no exception so this is fixed in it it seems. Perhaps all the gnu.regexp fixes should be ported to 4.1? Cheers, Michael -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26177