[jdom-interest] Ambiguous references and trouble compiling beta-8
Emmett McLean
emmettwa at onebox.com
Sun Sep 8 18:41:44 PDT 2002
Sure.
I'm programming on Windows2000.
I'm compiling from ANT using jdom-b8's build.xml
from a cygwin command line.
I'm using jdk 1.3.1 as you can see here :
! www1:/usr/jdom-b8>java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
This is an easy to read version of my classpath :
C:\Oracle\Ora81\jdbc\lib\classes111.zip
.
C:\jre\lib\i18n.jar
C:\cygwin\usr\jdom-b8\lib\collections.jar
C:\cygwin\usr\jdom-b8\lib\crimson.jar
C:\cygwin\usr\jdom-b8\lib\xalan.jar
C:\cygwin\usr\jdom-b8\lib\xerces.jar
C:\cygwin\usr\jgl-3.1.0
C:\cygwin\usr\jdk1.3.1\jre\lib\jaws.jar
C:\cygwin\usr\jdk1.3.1\jre\lib\rt.jar
C:\cygwin\usr\jdk1.3.1\jre\lib\sunrsasign.jar
C:\cygwin\usr\jdk1.3.1\lib\dt.jar
C:\cygwin\usr\jdk1.3.1\lib\htmlconverter.jar
C:\cygwin\usr\jdk1.3.1\lib\tools.jar
C:\Oracle\Ora81\jdbc\lib\classes111.zip
C:\cygwin\usr\jakarta-ant-1.4\lib\ant.jar
C:\cygwin\usr\jakarta-ant-1.4\lib\jaxp.jar
C:\cygwin\usr\jakarta-ant-1.4\lib\parser.jar
C:\cygwin\usr\junit3.7\junit.jar
C:\cygwin\usr\junit3.7
C:\cygwin\usr\jwhich
C:\cygwin\usr\pretty\Pretty.jar
C:\cygwin\usr\docw\DocWiz0.68.jar
This is what happens when I attempt a compile :
! www1:/home/Win98>cd /usr/jdom-b8
! www1:/usr/jdom-b8>ant
Buildfile: build.xml
init:
[echo] ----------- JDOM 1.0beta8-dev [2002] ------------
prepare:
prepare-src:
[mkdir] Created dir: C:\cygwin\usr\jdom-b8\build\src
[mkdir] Created dir: C:\cygwin\usr\jdom-b8\build\classes
[copy] Copying 43 files to C:\cygwin\usr\jdom-b8\build\src
collections:
compile:
[javac] Compiling 43 source files to C:\cygwin\usr\jdom-b8\build\classes
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\AttributeList.java:82:
Ambiguous class: java.ut
il.AbstractList and com.sun.java.util.collections.AbstractList
[javac] class AttributeList extends AbstractList
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\AttributeList.java:83:
Ambiguous class: java.ut
il.List and com.sun.java.util.collections.List
[javac] implements List, java.io.Serializable
{
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\ContentList.java:83:
Ambiguous class: java.util
.AbstractList and com.sun.java.util.collections.AbstractList
[javac] class ContentList extends AbstractList implements java.io.Serializable
{
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\ContentList.java:714:
Ambiguous class: java.uti
l.AbstractList and com.sun.java.util.collections.AbstractList
[javac] class FilterList extends AbstractList {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\ContentList.java:908:
Ambiguous class: java.uti
l.ListIterator and com.sun.java.util.collections.ListIterator
[javac] class FilterListIterator implements ListIterator {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\transform\JDOMSource.java:185:
Class <<ambiguou
s>>UnsupportedOperationException not found in class javax.xml.transform.sax.SAXSource.
[javac] public void setInputSource(InputSource inputSource)
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\transform\JDOMSource.java:206:
Class <<ambiguou
s>>UnsupportedOperationException not found in class javax.xml.transform.sax.SAXSource.
[javac] public void setXMLReader(XMLReader reader)
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\transform\JDOMSource.java:318:
Class <<ambiguou
s>>UnsupportedOperationException not found in class org.xml.sax.InputSource.
[javac] public void setCharacterStream(Reader characterStream)
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:95:
Ambiguous class: java.util.H
ashMap and com.sun.java.util.collections.HashMap
[javac] private static HashMap namespaces;
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:116:
Ambiguous class: java.util.
HashMap and com.sun.java.util.collections.HashMap
[javac] namespaces = new HashMap();
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:119:
Class <<ambiguous>>HashMap
not found in static {}.
[javac] namespaces.put("&", NO_NAMESPACE);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:120:
Class <<ambiguous>>HashMap
not found in static {}.
[javac] namespaces.put("xml&http://www.w3.org/XML/1998/namespace",
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:154:
Class <<ambiguous>>HashMap
not found in org.jdom.Namespace getNamespace(java.lang.String, java.lang.String).
[javac] Namespace preexisting = (Namespace) namespaces.get(lookup);
[javac]
^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Namespace.java:176:
Class <<ambiguous>>HashMap
not found in org.jdom.Namespace getNamespace(java.lang.String, java.lang.String).
[javac] namespaces.put(lookup, ns);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Comment.java:229:
Class <<ambiguous>>List not f
ound in java.lang.String toString().
[javac] .append(new org.jdom.output.XMLOutputter().outputString(this))
[javac]
^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\DocType.java:321:
Class <<ambiguous>>List not f
ound in java.lang.String toString().
[javac] .append(new org.jdom.output.XMLOutputter().outputString(this))
[javac]
^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:132:
Class <<ambiguous>>List not
found in org.jdom.Document(org.jdom.Element).
[javac] this(rootElement, null);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:148:
Class <<ambiguous>>List not
found.
[javac] public Document(List newContent, DocType docType) {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:164:
Class <<ambiguous>>List not
found.
[javac] public Document(List content) {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:165:
Class <<ambiguous>>List not
found in org.jdom.Document(<<ambiguous>>List).
[javac] this(content, null);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:213:
Wrong number of arguments in
method.
[javac] content.add(rootElement);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:296:
Wrong number of arguments in
method.
[javac] content.add(pi);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:311:
Wrong number of arguments in
method.
[javac] content.add(comment);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:331:
Class <<ambiguous>>List not
found.
[javac] public List getContent() {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:334:
Class <<ambiguous>>List not
found in return.
[javac] return content;
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:334:
Incompatible type for return
. Can't convert org.jdom.ContentList to <<ambiguous>>List.
[javac] return content;
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:352:
Class <<ambiguous>>List not
found.
[javac] public List getContent(Filter filter) {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:394:
Class <<ambiguous>>List not
found.
[javac] public Document setContent(List newContent) {
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:395:
Class <<ambiguous>>List not
found in org.jdom.Document setContent(<<ambiguous>>List).
[javac] content.clearAndSet(newContent);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:410:
Incompatible type for method
. Can't convert org.jdom.ProcessingInstruction to int.
[javac] return content.remove(pi);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:424:
Incompatible type for method
. Can't convert org.jdom.Comment to int.
[javac] return content.remove(comment);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:518:
Wrong number of arguments in
method.
[javac] doc.content.add(element);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:522:
Wrong number of arguments in
method.
[javac] doc.content.add(comment);
[javac] ^
[javac] C:\cygwin\usr\jdom-b8\build\src\org\jdom\Document.java:527:
Wrong number of arguments in
method.
[javac] doc.content.add(pi);
[javac] ^
Then control-C to stop the torture.
I have a utility called jwhich which locates objects in my classpath.
I have :
! www1:/usr/jdom-b8>jwhich java.util.AbstractList
Class 'java.util.AbstractList' found in
file:/C:/cygwin/usr/jdk1.3.1/jre/lib/rt.jar!/java/util/AbstractList.class
Class 'com.sun.java.util.collections.AbstractList' found in
file:/C:/cygwin/usr/jdom-b8/lib/collections.jar!/com/sun/java/util/collections/AbstractList.class
--
Emmett McLean
emmettwa at onebox.com - email
(866) 841-9139 x1160 - voicemail/fax
More information about the jdom-interest
mailing list