To IntelliJ Developers: IDEA internal javac error question

I'm developing a project with JDK 1.5 beta 3 build 56, and sometimes when I compile, I get this error:

Information: 1 error
Information: 0 warnings
Information: An exception has occurred in the compiler (1.5.0-beta). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
Information: java.lang.AssertionError: com.sun.tools.javac.comp.AttrContextEnv@7ffe01
Information: at com.sun.tools.javac.jvm.Code.typeForPool(Code.java:834)
Information: at com.sun.tools.javac.jvm.Code.emitop1(Code.java:817)
Information: at com.sun.tools.javac.jvm.Items$ImmediateItem.ldc(Items.java:525)
Information: at com.sun.tools.javac.jvm.Items$ImmediateItem.load(Items.java:567)
Information: at com.sun.tools.javac.jvm.Gen.visitEnumSwitch(Gen.java:1064)
Information: at com.sun.tools.javac.jvm.Gen.visitSwitch(Gen.java:1092)
Information: at com.sun.tools.javac.tree.Tree$Switch.accept(Tree.java:621)
Information: at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:648)
Information: at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:683)
Information: at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:669)
Information: at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:720)
Information: at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:967)
Information: at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:531)
Information: at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:905)
Information: at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:841)
Information: at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:473)
Information: at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2167)
Information: at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:321)
Information: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:460)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:584)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:536)
Information: at com.sun.tools.javac.Main.compile(Main.java:41)
Information: at com.sun.tools.javac.Main.main(Main.java:32)
Information: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Information: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Information: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Information: at java.lang.reflect.Method.invoke(Method.java:489)
Information: at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:49)
Error: Compiler internal error. Process terminated with exit code 4
Information: Compilation completed with 1 errors and 0 warnings


I reported this error to the CAP program and they said they thought they fixed this bug in b40, so they want to know the exact arguments to javac when this happens.

Is there a way to get these arguments from IDEA?

1 comment
Comment actions Permalink

Keith Lea wrote:

> Is there a way to get these arguments from IDEA?
Add the following to the %IDEA%/bin/log.xml:
]]>


--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.