Bug 162802

Summary: gcj complains regular expressions
Product: [Fedora] Fedora Reporter: Ivan Sedo <ikoframe>
Component: gccAssignee: Tom Tromey <tromey>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: patrickm
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-13 23:26:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivan Sedo 2005-07-08 18:50:05 UTC
Description of problem:
I'd like to use tools from 
http://multivalent.sourceforge.net/
but if I try to execute (I only tried it on) Validate, I get this error

Exception in thread "main"
java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass()
(/usr/lib/libgcj.so.6.0.0)
   at tool.pdf.Validate.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)
Caused by: java.util.regex.PatternSyntaxException: At
position 1 in regular expression pattern:
quantifier (?*+{}) without preceding token
        (?i)\.pdf$
         ^
   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
phelps.io.FileFilterPattern.FileFilterPattern(java.lang.String)
(Unknown Source)
   at multivalent.std.adaptor.pdf.COS.<clinit>()
(Unknown Source)
   at java.lang.Class.initializeClass()
(/usr/lib/libgcj.so.6.0.0)
   ...3 more
Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. try to use it on some file
2.
3.
  
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 21:42:52 UTC
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 22:00:55 UTC
Test case:

import java.util.regex.*;
public class t {
  public static void main(String[] args) {
    System.out.println(Pattern.compile("(?i)\\.pdf$"));
  }
}


Comment 3 Tom Tromey 2006-01-26 00:45:42 UTC
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 23:26:39 UTC
I put the patches in 4.1.
They are either in rawhide now, or will be shortly.
So, I'm closing this.