ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1035] New - javac throws exception when using JDK1.3
Date Tue, 20 Mar 2001 01:19:00 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1035

*** shadow/1035	Mon Mar 19 17:19:00 2001
--- shadow/1035.tmp.7840	Mon Mar 19 17:19:00 2001
***************
*** 0 ****
--- 1,66 ----
+ +============================================================================+
+ | javac throws exception when using JDK1.3                                   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1035                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.1                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version:                         |
+ |     Priority:                           Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: mvsoder@thuntek.net                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ While building a project using ANT 1.3 the build process failed on [javac] with 
+ the following exception:
+ 
+     [javac] An exception has occurred in the compiler (1.3.0). Please file a bug
+  at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi).
+ Include your program and the following diagnostic in your report.  Thank you.
+     [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(ClassRead
+ er.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.j
+ ava:1180)
+     [javac]     at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.ja
+ va:1198)
+     [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.compilers.Javac13.execute(Javac
+ 13.java:99)
+     [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:461)
+     [javac]     at org.apache.tools.ant.Target.execute(Target.java:153)
+     [javac]     at org.apache.tools.ant.Project.runTarget(Project.java:898)
+     [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+     [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:510)
+ 
+     [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:421)
+     [javac]     at org.apache.tools.ant.Main.main(Main.java:149)
+ 
+ I can work around the problem by running the JDK 1.2.2 compiler with the JDK 
+ 1.2.2 VM.  I can also use the JDK 1.2.2 compiler with the JDK 1.3 VM.  And I 
+ can also use the JDK 1.3 compiler with the JDK 1.2.2 VM.  The only combination 
+ that does not work is the JDK 1.3 compiler with the JDK 1.3 VM.  According to 
+ the verbose output the compiler in question successfully parsed the last source 
+ file before the exception was thrown.
+ 
+ I can successfully compile this source code by running javac directly from the 
+ command line but not via ANT.

Mime
View raw message