xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Aleksander Adamowski <jaxen AT olo.org.pl>
- To: xom-interest AT lists.ibiblio.org
- Subject: [XOM-interest] NUX from SVN doesn't compile
- Date: Fri, 16 Oct 2009 11:10:54 +0200
Hi!
I've checked out NUX from SVN, hoping to use XQueryBenchmark
(http://acs.lbl.gov/nux/api/nux/xom/sandbox/XQueryBenchmark.html).
It turns out that it doesn't compile:
1st, I discovered a simple missing import:
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLCodec.java:353:
cannot find symbol
[javac] symbol : class NodeBuilder
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] private NodeBuilder nodeBuilder;
Easily solved:
Index: src/nux/xom/binary/BinaryXMLCodec.java
===================================================================
--- src/nux/xom/binary/BinaryXMLCodec.java (revision 21977)
+++ src/nux/xom/binary/BinaryXMLCodec.java (working copy)
@@ -70,6 +70,7 @@
import nu.xom.WellformednessException;
import nu.xom.XMLException;
import nux.xom.io.StreamingSerializer;
+import nux.xom.util.NodeBuilder;
/**
* Serializes (encodes) and deserializes (decodes) XOM XML documents
to and from
However, after that, it starts going uphill:
javac:
[javac] Compiling 95 source files to /home/..../nux/build/classes
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLInputFactory.java:208:
cannot find symbol
[javac] symbol : method
deserialize2(java.io.InputStream,<nulltype>,boolean)
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] codec.deserialize2(in, null, false);
// FIXME: rename to initDeser() ???
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLInputFactory.java:311:
cannot find symbol
[javac] symbol : method
deserialize2(java.io.InputStream,<nulltype>,boolean)
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] codec.deserialize2(in, null, false);
// FIXME: rename to initDeser() ???
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamReader.java:186:
cannot find symbol
[javac] symbol : method close()
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] if (codec != null) codec.close();
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamReader.java:198:
cannot find symbol
[javac] symbol : method hasNext()
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] return codec.hasNext();
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamReader.java:214:
cannot find symbol
[javac] symbol : method
next(nux.xom.binary.SimpleElementStack,boolean,boolean,boolean)
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] ev = codec.next(events, isCoalescing,
isNamespaceAware, isSupportDTD);
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:335:
cannot find symbol
[javac] symbol : method dontAddNamespacesIfAbsent()
[javac] location: class nux.xom.binary.BinaryXMLCodec
[javac] codec.dontAddNamespacesIfAbsent();
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:374:
writeStartTag(nu.xom.Element) in nux.xom.binary.BinaryXMLCodec cannot
be applied to (java.lang.String,java.lang.String,java.lang.String)
[javac] codec.writeStartTag(prefix, localName, namespaceURI);
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:444:
writeNamespaceDeclaration(java.lang.String,java.lang.String) has
private access in nux.xom.binary.BinaryXMLCodec
[javac]
codec.writeNamespaceDeclaration(prefix, namespaceURI);
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:460:
writeNamespaceDeclaration(java.lang.String,java.lang.String) has
private access in nux.xom.binary.BinaryXMLCodec
[javac]
codec.writeNamespaceDeclaration(prefix, uri);
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:518:
writeAttribute(java.lang.String,java.lang.String,java.lang.String,java.lang.String,nu.xom.Attribute.Type)
has private access in nux.xom.binary.BinaryXMLCodec
[javac] codec.writeAttribute(
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:557:
writeText(java.lang.String) has private access in
nux.xom.binary.BinaryXMLCodec
[javac] codec.writeText(text); // whitespace
in prolog/epilog is insignificant
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:606:
writeProcessingInstruction(java.lang.String,java.lang.String) has
private access in nux.xom.binary.BinaryXMLCodec
[javac] codec.writeProcessingInstruction(target, data);
[javac] ^
[javac] /home/..../nux/src/nux/xom/binary/BinaryXMLStreamWriter.java:614:
writeComment(java.lang.String) has private access in
nux.xom.binary.BinaryXMLCodec
[javac] codec.writeComment(data);
[javac] ^
[javac] /home/..../nux/src/nux/xom/io/StaxReader.java:327: cannot
find symbol
[javac] symbol : method isWhitespaceOnly(java.lang.String)
[javac] location: class nux.xom.util.XMLUtil
[javac] && XMLUtil.isWhitespaceOnly(getText());
[javac] ^
[javac] 14 errors
Looks like lots of internal API changes not propagated, mainly in
BinaryXMLCodec.
--
Best Regards,
Aleksander Adamowski
http://olo.org.pl
- [XOM-interest] NUX from SVN doesn't compile, Aleksander Adamowski, 10/16/2009
Archive powered by MHonArc 2.6.24.