Bug#304524: libxerces2-java: FTBFS: Semantic Errors
Michael Koch
"Michael Koch" <konqueror@gmx.de>, 304524@bugs.debian.org
Sat Apr 16 22:24:03 2005
On Sat, Apr 16, 2005 at 07:40:27PM +0200, Wolfgang Baer wrote:
> Roland Stigge wrote:
> >Package: libxerces2-java
> >Version: 2.6.2-1
> >Severity: serious
> >Hi,
> >building the package libxerces2-java in a clean sid build environment
> >(with pbuilder) on i386 results in:
>
> [...]
>
> > [xjavac] Found 13 semantic errors and issued 5 warnings compiling
> >"/tmp/buildd/libxerces2-java-2.6.2/build/src/org/apache/xerces/dom/NodeImpl.java":
> > [xjavac] <-------
> > [xjavac] 118. public abstract class NodeImpl
> > [xjavac] 119. implements Node, NodeList, EventTarget, Cloneable, Serializable{
> > [xjavac] ------------------------------------------------------------------>
> > [xjavac] *** Semantic Error: The return type of method "org.apache.xerces.dom3.TypeInfo
> >getSchemaTypeInfo();" does not match the return type of the accessible method "org.w3c.dom.TypeInfo
> >getSchemaTypeInfo();" declared in type "org.w3c.dom.Element".
>
> Hi all,
>
> after some investigation this error is caused by the update of the
> org.w3c.* classes in the free runtimes to DOM Level 3.
>
> Its basically the same problem I struggled with during the process
> of moving libxalan2-java and libpgjava to main.
>
> There are two possiblities:
>
> (1) Use JDK 1.4 to build as it has DOM Level 2
>
> I think we all agree that this is NO option !
>
> (2) Include DOM Level 2 source classes in the debian directory
> and use the trick that source takes precedence over binary classes
> from the runtime during compilation.
>
> If no one has objections or another working approach I will prepare
> a new upload for possibility 2.
In order not to incluce DOM Level 2 compatible classes in several
packages we should either create a package for them and make packages
depend on it or use patches (writing them if needed) to make the
software build with DOM level 3. That isnt too hard either.
Michael
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/