You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sh...@lotus.com on 2001/03/07 19:31:42 UTC

Xalan-J 2.x compile error under JDK 1.1.8_004 "ElemTemplate.java:108: Cyclic class inheritance or scoping"

Anyone have any ideas?  I haven't built in JDK 1.1.x since Friday, so the
change that causes this could have been over the past few days.

Of course re-running a 'build jar' works fine the second time on the same
tree; it then compiles the one last file and jars nicely.  But ya can't
build from a clean tree in my environment: NT 4.0 SP5, JDK1.1.8_004,
xml-xalan CVS from just a few minutes ago:

E:\builds\xml-xalan\java>build jar
...
Starting Ant...
f:\jdks\jdk1.1.8\bin\java.exe -mx64m -Dant.home="." -classpath
"bin\ant.jar;bin\xerces.jar;bin\stylebook-1.0-b3_xalan-2.jar;bin\xalanjdoc.jar;f:

jdks\jdk1.1.8\lib\classes.zip;e:\jdks\jsdk2.0\lib\jsdk.jar;e:
\jdks\jsdk2.0\lib\jsdk.jar;f:\jdks\jdk1.1.8\lib\classes.zip"
org.apache.tools.ant.Main jar
Buildfile: build.xml

prepare:
    [mkdir] Created dir: E:\builds\xml-xalan\java\build
    [mkdir] Created dir: E:\builds\xml-xalan\java\build\classes

compile:
     [echo] compile entire source tree and copy  .properties and .res files
to build tree.
    [javac] Compiling 457 source files to E:
\builds\xml-xalan\java\build\classes

    [javac] E:
\builds\xml-xalan\java\src\org\apache\xalan\templates\ElemTemplate.java:108:

Cyclic class inheritance or scoping.
    [javac]    * <p>If the system identifier is a URL, the parser must
resolve it
    [javac]                                                         ^
    [javac] 1 error

BUILD FAILED

The other solution (i.e. other than changing .java code) is to break down
the 'compile' target to do separate chunks, but I don't want to do that
until we understand what's happening.
- Shane, defender of the JDK 1.1.x masses


Re: Xalan-J 2.x compile error under JDK 1.1.8_004 "ElemTemplate.java:108: Cyclicclass inheritance or scoping"

Posted by Gary L Peskin <ga...@firstech.com>.
Shane_Curcuru@lotus.com wrote:
> 
> Anyone have any ideas?  I haven't built in JDK 1.1.x since Friday, so the
> change that causes this could have been over the past few days.
> 
> Of course re-running a 'build jar' works fine the second time on the same
> tree; it then compiles the one last file and jars nicely.  But ya can't
> build from a clean tree in my environment: NT 4.0 SP5, JDK1.1.8_004,
> xml-xalan CVS from just a few minutes ago:

Shane --

This started happening to me too.  This was reported at

http://developer.java.sun.com/developer/bugParade/bugs/4043508.html

and apparently has to do with a level of class dependencies exceeding a
certain threshhold and confounding the compiler.  The BugParade item
indicates that Sun is aware of the problem and has no intention of
fixing it.

We have shifted our attention away from XalanJ1 toward XalanJ2 and have
pretty much the same approach to XalanJ1 bugs.  So, I guess this is
what's also happening with JDK 1.1.8, except that we're on the other
side.

I think we should maybe reevaluate our non-migration to Java2 if more
problems like this arise.

Gary