You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2016/07/29 08:11:20 UTC

[jira] [Commented] (BCEL-277) Resolving the String representation of a constant throws NoSuchElementException in case of CONSTANT_NameAndType constant.

    [ https://issues.apache.org/jira/browse/BCEL-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15398922#comment-15398922 ] 

Benedikt Ritter commented on BCEL-277:
--------------------------------------

{code}
$ svn ci -m "BCEL-277: Resolving the String representation of a constant throws NoSuchElementException in case of CONSTANT_NameAndType constant. Thanks to Sam Yoon. This also closes #9 from GitHub."
Sending        src/changes/changes.xml
Sending        src/main/java/org/apache/bcel/classfile/ConstantPool.java
Adding         src/test/java/org/apache/bcel/classfile/ConstantPoolTestCase.java
Adding         src/test/java/org/apache/bcel/data/SimpleClassWithDefaultConstructor.java
Transmitting file data ....done
Committing transaction...
Committed revision 1754483.
{code}

Thank you!

> Resolving the String representation of a constant throws NoSuchElementException in case of CONSTANT_NameAndType constant.
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BCEL-277
>                 URL: https://issues.apache.org/jira/browse/BCEL-277
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: 6.0
>            Reporter: Sam Yoon
>            Assignee: Benedikt Ritter
>              Labels: github
>             Fix For: 6.1
>
>         Attachments: ConstantPoolTestCase.java, SimpleClassWithDefaultConstructor.java, patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)