]
Issue was automatically transitioned when Stephan Windmüller created pull request #45 in
GitHub
-----------------------------------------------------------------------------------------------
Status: Pull Request Sent (was: Open)
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)}}