ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin.Guenth...@Compart.net
Subject Strange compiler error
Date Thu, 15 Mar 2001 12:20:04 GMT

Hi there,

I have a strange problem with the "modern" compiler. My project has several
subprojects;
and when I say "ant system" in my top-level directory, it will do something
like this:

   <ant dir="sub1" target="system" />
   <ant dir="sub2" target="system" />
and so on.

Exactly after compiling three of my subprojects, javac will fail.  It will
present me the
error message that is given in the end of my mail.

I switched back to ANT 1.2 - same problem.
I switched to JDK 1.3 IBM - same problem.
I switched to JDK 1.2 to use the classic compiler ... and this compiler
simply refuses to compile my classes because of an old bug that was
fixed with the modern compiler.

You see, I could do the whole stuff manually by typing:

ant -buildfile sub1\build.xml system
ant -buildfile sub2\build.xml system
ant -buildfile sub3\build.xml system ...

but I have some 10 targets and the idea of a doing it manually each time
doesnt sound very sophisticated ...

the strangest thing is: I once had a version that did what I need. Then we
changed
a lot of things, and now it is broken ;-(

    [javac] java.lang.InternalError: jzentry == 0
    [javac]     at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:893)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1095)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1180)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1202)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:955)
    [javac]     at
com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
    [javac]     at com.sun.tools.javac.v8.comp.Enter._case(Enter.java:424)
    [javac]     at
com.sun.tools.javac.v8.tree.Tree$TopLevel.visit(Tree.java:349)
    [javac]     at
com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:392)
    [javac]     at
com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:410)
    [javac]     at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:540)
    [javac]     at
com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:357)
    [javac]     at com.sun.tools.javac.v8.Main.compile(Main.java:247)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:26)
    [javac]     at java.lang.reflect.Method.invoke(Native Method)
    [javac]     at
org.apache.tools.ant.taskdefs.Javac.doModernCompile(Javac.java:525)
    [javac]     at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:334)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:142)
    [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:818)
    [javac]     at
org.apache.tools.ant.Project.executeTarget(Project.java:532)
    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    [javac]     at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:142)
    [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:818)
    [javac]     at
org.apache.tools.ant.Project.executeTarget(Project.java:532)
    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:142)
    [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:818)
    [javac]     at
org.apache.tools.ant.Project.executeTarget(Project.java:532)
    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    [javac]     at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:142)
    [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:818)
    [javac]     at
org.apache.tools.ant.Project.executeTarget(Project.java:532)
    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    [javac]     at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:142)
    [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:818)
    [javac]     at
org.apache.tools.ant.Project.executeTarget(Project.java:532)
    [javac]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    [javac]     at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:142)
    [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:818)
    [javac]     at
org.apache.tools.ant.Project.executeTarget(Project.java:532)
    [javac]     at
org.apache.tools.ant.Project.executeTargets(Project.java:506)
    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:420)
    [javac]     at org.apache.tools.ant.Main.main(Main.java:149)


Mime
View raw message