From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11337 invoked by alias); 8 Feb 2006 17:11:40 -0000 Received: (qmail 11190 invoked by alias); 8 Feb 2006 17:11:37 -0000 Date: Wed, 08 Feb 2006 17:11:00 -0000 Message-ID: <20060208171137.11189.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/26177] Exception when compiling valid regex pattern In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "konqueror at gmx dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg00787.txt.bz2 List-Id: ------- 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