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

Resolving the String representation of a constant throws NoSuchElementException in case of CONSTANT_NameAndType constant.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.1
    • Component/s: Main
    • Labels:

      Description

      A method that constantToString of ConstantPool class always occur NoSuchElementException when face with costant type of CONSTANT_NameAndType.

      A reason is invalid separator for StringTokenizer that colon. It should be replaced to empty string.

      I had pull request include ConstantPoolTestCase.

        Attachments

        1. SimpleClassWithDefaultConstructor.java
          0.3 kB
          Sam Yoon
        2. patch
          5 kB
          Sam Yoon
        3. ConstantPoolTestCase.java
          1 kB
          Sam Yoon

          Issue Links

            Activity

              People

              • Assignee:
                britter Benedikt Ritter
                Reporter:
                SamYoon Sam Yoon
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: