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

Allow creation of class object constants

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: unspecified
    • Fix Version/s: None
    • Component/s: Main
    • Labels:
      None

      Description

      Accessing class objects (e.g. String.class) gets BCELified as

      new PUSH(_cp, new ObjectType("java.lang.String"))

      which works fine. Trying to create such a constant using Factory.createConstant throws a ClassGenException, however:

      _factory.createConstant(new ObjectType("java.lang.String"))

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              uhrm Markus Uhr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: