[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Xerces 1.4.3 compilation errors
From:       otisg () ivillage ! com
Date:       2001-09-27 5:09:27
[Download RAW message or body]

Hello,

I am trying to compile Xerces-J 1.4.3.
While the source does compile when I use the Makefile that comes with Xerces, it \
always fails when I try compiling it using my own build.xml (Ant) or my own Makefile.

I get 53 compilation errors, but there are only maybe 3,4, or 5 types of errors \
really. Here are some.
Has anyone seen something like this before?

compile:
     [copy] Copying 1358 files to /home/blink/extjava/build/src
    [javac] Compiling 1260 source files to /home/blink/extjava/build/classes
    [javac] /home/blink/extjava/build/src/xerces/src/org/apache/xerces/dom/ChildAndParentNode.java:180: \
ownerDocument() in org.apache.xerces.dom.ChildAndParentNode cannot override \
ownerDocument() in org.apache.xerces.dom.NodeImpl; attempting to use incompatible \
return type  [javac] found   : org.apache.xerces.dom.DocumentImpl
    [javac] required: org.apache.xerces.dom.CoreDocumentImpl
    [javac]     DocumentImpl ownerDocument() {
    [javac]                  ^
    [javac] /home/blink/extjava/build/src/xerces/src/org/apache/xerces/dom/ChildAndParentNode.java:296: \
cannot resolve symbol  [javac] symbol  : variable MUTATION_ALL  
    [javac] location: class org.apache.xerces.dom.ChildAndParentNode
    [javac]         return internalInsertBefore(newChild,refChild,MUTATION_ALL);
    [javac]                                                       ^
    [javac] /home/blink/extjava/build/src/xerces/src/org/apache/xerces/dom/ChildAndParentNode.java:386: \
cannot resolve symbol  [javac] symbol  : class EnclosingAttr  
    [javac] location: class org.apache.xerces.dom.ChildAndParentNode
    [javac]             EnclosingAttr enclosingAttr=null;
    [javac]             ^
    [javac] /home/blink/extjava/build/src/xerces/src/org/apache/xerces/dom/ChildAndParentNode.java:397: \
cannot resolve symbol  [javac] symbol  : method getEnclosingAttr  ()
    [javac] location: class org.apache.xerces.dom.ChildAndParentNode
    [javac]                     enclosingAttr=getEnclosingAttr();
    [javac]                                   ^
    [javac] /home/blink/extjava/build/src/xerces/src/org/apache/xerces/dom/ChildAndParentNode.java:479: \
initMutationEvent(java.lang.String,boolean,boolean,org.w3c.dom.Node,java.lang.String,java.lang.String,java.lang.String,short) \
in org.w3c.dom.events.MutationEvent cannot be applied to \
(java.lang.String,boolean,boolean,org.apache.xerces.dom.ChildAndParentNode,<null>,<null>,<null>)
  [javac]                         me.initMutationEvent(
    [javac]                           ^
...
...
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 53 errors

BUILD FAILED


One weird thing is that when I did this:
  find . -name \*java |xargs grep MUTATION_ALL

I really did not find the definition of this MUTATION_ALL variable.
Where is it defined?

Any help would be very much appreciated.
I tried using both javac and jikes and both give the same results.
I am doing this on Linux (RH 7.1) with Sun's JDK (I think it's version 1.3.1 or so).

Thanks,
Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic