I have a Xerces issue that surfaced when I upgraded from Java 1.4.2 to 1.5.
Plus I get different behavior depending on whether I am inside or outside 
Eclipse.

Here's my simple test file:
        import org.apache.xerces.dom.DocumentImpl;
        public class DocTest extends DocumentImpl {
                public static void main(String[] args) {
                                System.out.println("hello world");
                }
        }
This compiled fine with Java 1.4, either with the command-line javac or from 
within Eclipse.

Now that I upgraded to Java 1.5, Eclipse (with 1.5) compiles it fine,
but from the command-line I get this error:

DocTest.java:2: getDomConfig() in org.apache.xerces.dom.CoreDocumentImpl cannot
implement getDomConfig() in org.w3c.dom.Document; attempting to use incompatible
 return type
found   : org.apache.xerces.dom3.DOMConfiguration
required: org.w3c.dom.DOMConfiguration
public class DocTest extends DocumentImpl {

I used the Xalan EnvironmentCheck tool to compare environments between Eclipse 
and command-line, but they seem to be comparable (I think).

This section is identical when run inside or outside Eclipse:
        version.xerces2=Xerces-J 2.6.2
        version.xerces1=not-present
        version.xalan2_2=Xalan Java 2.6.0
        version.xalan1=not-present
        version.ant=not-present
        java.version=1.5.0_03
        version.DOM=2.0

So two main questions:
(1) Why am I seeing a difference between command-line and Eclipse compilation?
(2) What is causing the compilation error at all?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to