public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/26202]  New: Regex bug "++"
@ 2006-02-09 23:21 green at redhat dot com
  2006-02-10  8:29 ` [Bug libgcj/26202] " konqueror at gmx dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: green at redhat dot com @ 2006-02-09 23:21 UTC (permalink / raw)
  To: java-prs

$ cat ar.java
import java.util.regex.*;

public class ar
{
  public static void main (String args[])
  {
    Pattern p = Pattern.compile ("[0-9.]++\\%");
  }
}
$ gcj -C ar.java
$ gij ar
$ gij ar
Exception in thread "main" java.util.regex.PatternSyntaxException: At position
8 in regular expression pattern:
attempted to repeat a token that is already repeated
        [0-9.]++\%
                ^
   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)


-- 
           Summary: Regex bug "++"
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26202


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-10 19:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 23:21 [Bug libgcj/26202] New: Regex bug "++" green at redhat dot com
2006-02-10  8:29 ` [Bug libgcj/26202] " konqueror at gmx dot de
2006-02-10 19:52 ` tromey at gcc dot gnu dot org
2006-02-10 19:54 ` tromey at gcc dot gnu dot org

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