Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4257961

internal error in Items$LocalItem.<init>

XMLWordPrintable

    • merlin
    • x86, sparc
    • solaris_1, windows_98, windows_nt
    • Verified

      McClusky Testcase Name: lv098.java

      public class chk5 {
      static int depth = 10;
      void f(final int i)
      {
      final int j; j = 47;
      class A {
      A(final int k)
      {
      if (i + j + k != 141)
      System.exit(1);
      class B {
      B(final int l)
      {
      if (i + j + k + l != 208)
      System.exit(2);
      }
      }
      new B(67);
      if (depth-- > 0)
      new A(k);
      }
      }
      new A(57);
      }
      public static void main(String args[])
      {
      new chk5().f(37);
      System.exit(0);
      }
      }

      -----------------------------------------------------------------
      Compiled in kestrel


      1) javac chk5.java
      2) java chk5

      getting the following error
      ----------------------------

      An exception has occurred in the compiler. (v0.8)
      Please file a bug report by sending your program and the following diagnostic to
      ###@###.###

      Thank you.

      java.lang.InternalError: assertion failed
              at com.sun.tools.javac.v8.util.Util.assert(Util.java:35)
              at com.sun.tools.javac.v8.comp.Items$LocalItem.<init>(Items.java:346)
              at com.sun.tools.javac.v8.comp.Items.makeLocalItem(Items.java:99)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:1334)
              at com.sun.tools.javac.v8.tree.Tree$Ident.visit(Tree.java:829)
              at com.sun.tools.javac.v8.comp.Gen.genExpr(Gen.java:399)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:1108)
              at com.sun.tools.javac.v8.tree.Tree$Operation.visit(Tree.java:752)
              at com.sun.tools.javac.v8.comp.Gen.genExpr(Gen.java:399)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:1108)
              at com.sun.tools.javac.v8.tree.Tree$Operation.visit(Tree.java:752)
              at com.sun.tools.javac.v8.comp.Gen.genExpr(Gen.java:399)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:1108)
              at com.sun.tools.javac.v8.tree.Tree$Operation.visit(Tree.java:752)
              at com.sun.tools.javac.v8.comp.Gen.genExpr(Gen.java:399)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:1108)
              at com.sun.tools.javac.v8.tree.Tree$Operation.visit(Tree.java:752)
              at com.sun.tools.javac.v8.comp.Gen.genExpr(Gen.java:399)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:881)
              at com.sun.tools.javac.v8.tree.Tree$Conditional.visit(Tree.java:593)
              at com.sun.tools.javac.v8.comp.Gen.genDef(Gen.java:362)
              at com.sun.tools.javac.v8.comp.Gen.genStat(Gen.java:375)
              at com.sun.tools.javac.v8.comp.Gen.genStats(Gen.java:383)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:504)
              at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:443)
              at com.sun.tools.javac.v8.comp.Gen.genDef(Gen.java:362)
              at com.sun.tools.javac.v8.comp.Gen.genStat(Gen.java:375)
              at com.sun.tools.javac.v8.comp.Gen.genMethod(Gen.java:471)
              at com.sun.tools.javac.v8.comp.Gen._case(Gen.java:437)
              at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:399)
              at com.sun.tools.javac.v8.comp.Gen.genDef(Gen.java:362)
              at com.sun.tools.javac.v8.comp.Gen.genClass(Gen.java:1431)
              at com.sun.tools.javac.v8.JavaCompiler.genCode(JavaCompiler.java:272)
              at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:371)
              at com.sun.tools.javac.v8.Main.compile(Main.java:266)
              at com.sun.tools.javac.Main.main(Main.java:28)
       

            busersunw Btplusnull User (Inactive)
            sshakilasunw Shahulhameedmohaideenhaleema Shakila (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: