Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-362

Handling for Constants.CONSTANT_Dynamic is missing in class ConstantPool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.6.0
    • None
    • None

    Description

      Disclaimer: I am not a byte code buff, so if I am misunderstanding anything here, please forgive me for raising a stupid issue, try to be patient and explain it to me.

      When looking at the class ConstantPool, it seems as if condy is not being handled in methods

      • constantToString(Constant),
      • addConstant(Constant, ConstantPool),
      • addConstantDynamic(int, int) (method does not exist, not sure if it would be necessary).

      I would have expected something like case Constants.CONSTANT_Dynamic with proper handling for this case in the first two methods.

      When using BCEL in order to parse class files using condy, like JaCoCo creates them, this causes errors. FYI, we are using BCEL code in AspectJ, and whenever people combine it with JaCoCo, corresponding problems occur.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kriegaex Alexander Kriegisch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: