javac compiler AssertionError in netbeans context

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • 6-pool
    • Affects Version/s: 6u26
    • Component/s: tools
    • x86
    • linux

      FULL PRODUCT VERSION :
      java version "1.6.0_26"
      Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
      Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux courant 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011 i686 i686 i386 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Compiling 9 source files to /home/horst/dev/NB/MVA-DB/EvtEditor/build/classes
      An exception has occurred in the compiler (1.6.0_26). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.AssertionError
      at com.sun.tools.javac.jvm.Code$State.forceStackTop(Code.java:1688)
      at com.sun.tools.javac.jvm.Gen.visitConditional(Gen.java:1679)
      at com.sun.tools.javac.tree.JCTree$JCConditional.accept(JCTree.java:1021)
      at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:818)
      at com.sun.tools.javac.jvm.Gen.visitAssign(Gen.java:1752)
      at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1342)
      at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:818)
      at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1605)
      at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1074)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:737)
      at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1013)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:739)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.visitIf(Gen.java:1589)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1050)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:737)
      at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1013)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:739)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.genLoop(Gen.java:1062)
      at com.sun.tools.javac.jvm.Gen.visitForLoop(Gen.java:1033)
      at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:818)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:737)
      at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1013)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:739)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.visitIf(Gen.java:1589)
      at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1050)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
      at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:737)
      at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1013)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:739)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
      at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:893)
      at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:866)
      at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639)
      at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
      at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2198)
      at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:617)
      at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1289)
      at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1259)
      at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:765)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:730)
      at com.sun.tools.javac.main.Main.compile(Main.java:353)
      at com.sun.tools.javac.main.Main.compile(Main.java:279)
      at com.sun.tools.javac.main.Main.compile(Main.java:270)
      at com.sun.tools.javac.Main.compile(Main.java:69)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
      at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1134)
      at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
      at org.netbeans.modules.java.source.ant.JavacTask.execute(JavacTask.java:144)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:390)
      at org.apache.tools.ant.Target.performTasks(Target.java:411)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
      at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
      at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
      /home/horst/dev/NB/MVA-DB/EvtEditor/nbproject/build-impl.xml:604: The following error occurred while executing this line:
      /home/horst/dev/NB/MVA-DB/EvtEditor/nbproject/build-impl.xml:246: Compile failed; see the compiler error output for details.
      BUILD FAILED (total time: 0 seconds)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Replacing
      Object cvA = cv instanceof Integer ? new int[1] : cv instanceof Number ? new double[1] : new String[1];
      by
      Object cvA = Array.newInstance( cv instanceof Integer ? int.class : cv instanceof Number ? double.class : String.class, 1);
      works, aka that seams to be duplicate of bug id 6500343

      Unclear why netbeans compileOnSave (incremental) doesnt fail but "clean and build" creates the fault observed

            Assignee:
            Unassigned
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: