Circular references through ConstantDynamic should be caught in the proper way

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • asm_tools_6.0
    • Affects Version/s: asm_tools_6.0
    • Component/s: tools
    • None

      The attached jcod file was used to generate the class file with helping jcoder.
      The class file contains circular references through ConstantDynamic
      jdis with this class file throws StackOverflowError
      ....
      public static Method condy_bsm_condy_bsm:"()Ljava/lang/Object;"
      stack 1 locals 0
      {
      java.lang.StackOverflowError
      at org.openjdk.asmtools.jdis.ConstantPool$CPX2.stringVal(ConstantPool.java:508)
      at org.openjdk.asmtools.jdis.ConstantPool.StringValue(ConstantPool.java:958)
      at org.openjdk.asmtools.jdis.ConstantPool.ConstantStrValue(ConstantPool.java:993)
      at org.openjdk.asmtools.jdis.ConstantPool$CPX2.stringVal(ConstantPool.java:541)
      at org.openjdk.asmtools.jdis.ConstantPool.StringValue(ConstantPool.java:958)
      at org.openjdk.asmtools.jdis.ConstantPool.ConstantStrValue(ConstantPool.java:993)
      at org.openjdk.asmtools.jdis.ConstantPool$CPX2.stringVal(ConstantPool.java:541)

            Assignee:
            Leonid Kuskov
            Reporter:
            Leonid Kuskov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: