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
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.
Test case: import java.util.regex.*; public class t { public static void main(String[] args) { System.out.println(Pattern.compile("(?i)\\.pdf$")); } }
Ito's regex fixes in Classpath fix this bug. I'm investigating whether to pull these into gcc4.1 / fc5
I put the patches in 4.1. They are either in rawhide now, or will be shortly. So, I'm closing this.