Description of problem: javac is unable to resolve javax.xml even when /usr/share/java/xerces-j2.jar is explicitly added to the CLASSPATH. Version-Release number of selected component (if applicable): java-1.4.2-gcj4-compat-1.4.2.0-3jpp libgcj4-4.0.0-0.22 java-1.4.2-gcj4-compat-devel-1.4.2.0-3jpp libgcj4-devel-4.0.0-0.22 xerces-j2-2.6.2-4jpp How reproducible: Always Steps to Reproduce: 1. Add /usr/share/java/xerces-j2.jar to your CLASSPATH 2. Attempt to compile java code importing a library in xerces Actual results: Import cannot be resolve and build fails Expected results: Build should succeed without warnings Additional info: IBM and BEA both appear to have the xerces libraries (or at least javax) built in.
Created attachment 110614 [details] Test case for bug Ensure that /usr/share/java/xerces-j2.jar is on the CLASSPATH then attempt to compile the code, you'll get, ---------- 1. ERROR in Test.java (at line 1) import javax.xml.parsers.SAXParser; ^^^^^^^^^ The import javax.xml cannot be resolved ---------- 2. ERROR in Test.java (at line 2) import javax.xml.parsers.SAXParserFactory; ^^^^^^^^^ The import javax.xml cannot be resolved ---------- 3. ERROR in Test.java (at line 8) SAXParser parser = null; ^^^^^^^^^ SAXParser cannot be resolved or is not a type ---------- 4. ERROR in Test.java (at line 9) parser = SAXParserFactory.newInstance().newSAXParser(); ^^^^^^^^^^^^^^^^ SAXParserFactory cannot be resolved ---------- 4 problems (4 errors) IBM and BEA will both be able to compile and run the above code with out errors. GCJ4 will be able to neither comile it nor run a version compiled with IBM or BEA.
Created attachment 110616 [details] Log from gcj4 run This is the output of running /usr/lib/jvm/java-gcj4/bin/java Test on a class file compiled by ibm javac.
Can you update to the latest java-1.4.2-gcj-compat and java-1.4.2-gcj-compat-devel (note, gcj, not gcj4) in Rawhide and try again?
yup, was fixed in Rawhide