Bug 305616

Summary: Built-in compiler won't compile DocumentBuilderFactory.setXIncludeAware
Product: [Eclipse Project] JDT Reporter: Jerry Quinn <jlquinn>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.5.2   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jerry Quinn CLA 2010-03-11 19:18:07 EST
The following program does not compile inside eclipse.  dbf.setXIncludeAware fails.  Outside eclipse I can compile with no problem.  I'm using IBM Java 1.6 SR7 on Centos 5.4 x86_64 to run eclipse and have no other JVM's.  Eclipse is running under this jvm

import javax.xml.parsers.*;
public class junk {
	public void foo() {
		javax.xml.parsers.DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
		dbf.setXIncludeAware(true);
	}
}



-- Configuration Details --
Product: Eclipse 1.2.2.20100122-1337 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.jdt 3.5.2.r352_v20100108-7r88FEwFI0WTuoBl0iaG0tyhfZH6
Comment 1 Olivier Thomann CLA 2010-03-11 21:28:35 EST
Please provide the build path used inside Eclipse.
Comment 2 Olivier Thomann CLA 2010-03-12 10:35:34 EST
This looks like a configuration issue.
I don't have the same configuration, so it is difficult to try your case.
Please provide screenshots of the build path of your project.
Comment 3 Jerry Quinn CLA 2010-03-12 14:00:36 EST
OK, I've created a project with only the test and that compiles correctly.

The problem was in Solr 1.4 which had the following jar in the path:

xml-apis-1.0.b2.jar
Comment 4 Olivier Thomann CLA 2010-03-12 14:10:00 EST
Does xml-apis-1.0.b2.jar contain the method you are looking for?
If it is added first on the classpath, it might hide types that contain the proper API.
If you can compile fine on the command line, always check that you are using the "same" classpath on both sides (the IDE and the command line).
So closing as INVALID ?
Comment 5 Jerry Quinn CLA 2010-03-12 16:52:25 EST
(In reply to comment #4)
> Does xml-apis-1.0.b2.jar contain the method you are looking for?
> If it is added first on the classpath, it might hide types that contain the
> proper API.

It hadn't occurred to me that the core library was being overridden.

> If you can compile fine on the command line, always check that you are using
> the "same" classpath on both sides (the IDE and the command line).
> So closing as INVALID ?

Yes, you can close it.  Sorry for the noise.
Comment 6 Olivier Thomann CLA 2010-03-12 16:55:45 EST
Closing as INVALID.
Comment 7 Frederic Fusier CLA 2010-04-26 09:15:00 EDT
Verified by reporter