public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "konqueror at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug libgcj/26177] Exception when compiling valid regex pattern
Date: Wed, 08 Feb 2006 17:11:00 -0000	[thread overview]
Message-ID: <20060208171138.11199.qmail@sourceware.org> (raw)
In-Reply-To: <bug-26177-83@http.gcc.gnu.org/bugzilla/>



------- 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


  reply	other threads:[~2006-02-08 17:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08 17:03 [Bug libgcj/26177] New: " green at redhat dot com
2006-02-08 17:11 ` konqueror at gmx dot de [this message]
2006-02-08 17:22 ` [Bug classpath/26177] " mark at gcc dot gnu dot org
2006-02-08 17:32 ` [Bug libgcj/26177] " green at redhat dot com
2006-02-08 17:34 ` [Bug libgcj/26177] [4.1 only] " pinskia at gcc dot gnu dot org
2006-02-08 17:49 ` konqueror at gmx dot de
2006-02-08 17:52 ` pinskia at gcc dot gnu dot org
2006-02-08 18:54 ` tromey at gcc dot gnu dot org
2006-02-10 19:52 ` tromey at gcc dot gnu dot org
2006-02-10 19:53 ` tromey at gcc dot gnu dot org
2006-02-10 19:54 ` tromey at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060208171138.11199.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).