Bug 305616 - Built-in compiler won't compile DocumentBuilderFactory.setXIncludeAware
Summary: Built-in compiler won't compile DocumentBuilderFactory.setXIncludeAware
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-11 19:18 EST by Jerry Quinn CLA
Modified: 2010-04-26 09:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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