Bug 162802 - gcj complains regular expressions
gcj complains regular expressions
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Tromey
Depends On:
  Show dependency treegraph
Reported: 2005-07-08 14:50 EDT by Ivan Sedo
Modified: 2014-08-11 01:46 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-13 18:26:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ivan Sedo 2005-07-08 14:50:05 EDT
Description of problem:
I'd like to use tools from 
but if I try to execute (I only tried it on) Validate, I get this error

Exception in thread "main"
   at java.lang.Class.initializeClass()
   at tool.pdf.Validate.main(java.lang.String[])
(Unknown Source)
   at gnu.java.lang.MainThread.call_main()
   at gnu.java.lang.MainThread.run()
Caused by: java.util.regex.PatternSyntaxException: At
position 1 in regular expression pattern:
quantifier (?*+{}) without preceding token
   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)
(Unknown Source)
   at multivalent.std.adaptor.pdf.COS.<clinit>()
(Unknown Source)
   at java.lang.Class.initializeClass()
   ...3 more
Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. try to use it on some file
Actual results:
exception raised

Expected results:
should work without exceptions

Additional info:
I contacted the developer of multivalent tool firstly and he wrote, it could be
a gcj issue
Comment 1 Thomas Fitzsimmons 2005-10-01 17:42:52 EDT
This should probably be filed at gcc.gnu.org/bugzilla.  It'd be great to have a
minimal test case for this.  Reassigning to Tom Tromey.
Comment 2 Tom Tromey 2006-01-23 17:00:55 EST
Test case:

import java.util.regex.*;
public class t {
  public static void main(String[] args) {
Comment 3 Tom Tromey 2006-01-25 19:45:42 EST
Ito's regex fixes in Classpath fix this bug.
I'm investigating whether to pull these into gcc4.1 / fc5
Comment 4 Tom Tromey 2006-02-13 18:26:39 EST
I put the patches in 4.1.
They are either in rawhide now, or will be shortly.
So, I'm closing this.

Note You need to log in before you can comment on or make changes to this bug.