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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0
    • 6.1
    • Main

    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. ConstantPoolTestCase.java
          1 kB
          Sam Yoon
        3. patch
          5 kB
          Sam Yoon

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: