Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902063

Circular references through ConstantDynamic should be caught in the proper way

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • asm_tools_6.0
    • asm_tools_6.0
    • 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)

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

              Created:
              Updated:
              Resolved: