[forge-issues] [JBoss JIRA] (ROASTER-85) StringIndexOutOfBoundsException when handling nested typed parameters

Lincoln Baxter III (JIRA) issues at jboss.org
Thu Nov 19 08:44:01 EST 2015


    [ https://issues.jboss.org/browse/ROASTER-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130809#comment-13130809 ] 

Lincoln Baxter III commented on ROASTER-85:
-------------------------------------------

Hi! Thank you so much for filing this bug AND for submitting a failing test case! Open source is driven by people like you! George is on Vacation for another week or so, but if I can get some time away from my current tasks, I will try to take a look at this. If you happen to solve it before I get the chance to take a look, just send an updated PR and if looks good and the tests pass, I'll be happy to merge it.

> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
>                 Key: ROASTER-85
>                 URL: https://issues.jboss.org/browse/ROASTER-85
>             Project: Roaster
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.17.1.Final
>            Reporter: Stephan Windmüller
>
> When parsing a Type object with nested types, like {{Map<String,Map<java.lang.String,Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> 	at java.lang.String.substring(String.java:1967)
> 	at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> 	at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> 	at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the forge-issues mailing list