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

[lworld] java.lang.AssertionError: Invalid pool entry

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Compiling this program:

      public class Test {
          static inline class MyValue {
              int x = 42;
              static void test() { };
          }
          public static void main(String[] args) {
              MyValue.ref.test();
          }
      }

      results in:

      java.lang.AssertionError: Invalid pool entry
      at jdk.compiler/com.sun.tools.javac.code.Symbol.poolTag(Symbol.java:292)
      at jdk.compiler/com.sun.tools.javac.jvm.PoolWriter$WriteablePoolHelper.writeConstant(PoolWriter.java:371)
      at jdk.compiler/com.sun.tools.javac.jvm.PoolWriter$WriteablePoolHelper.writeIfNeeded(PoolWriter.java:362)
      at jdk.compiler/com.sun.tools.javac.jvm.PoolWriter.putMember(PoolWriter.java:134)
      at jdk.compiler/com.sun.tools.javac.jvm.Code.emitop2(Code.java:1002)
      at jdk.compiler/com.sun.tools.javac.jvm.Items$StaticItem.load(Items.java:449)
      at jdk.compiler/com.sun.tools.javac.jvm.Gen.visitTypeCast(Gen.java:2327)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCTypeCast.accept(JCTree.java:2169)
      at jdk.compiler/com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:882)
      at jdk.compiler/com.sun.tools.javac.jvm.Gen.visitSelect(Gen.

      ...


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                sadayapalam Srikanth Adayapalam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: