This content has been marked as final.
Show 2 replies
-
1. Re: roaster: JavaCLassSource.getSuperType is throwing StringIndexOutOfBoundsException
neoludo Nov 19, 2015 4:23 AM (in response to neoludo)To reproduce problem, add lines below in TypesTest.java (project version 2.17.2.Final)
@Test
public void testisGeneric(){
assertTrue(Types.isGeneric("List<Map<String, String>>"));
}
Here is my proposed fix in Types.java:
[...]
String typeArgs = type.substring(genericStart + 1, type.lastIndexOf('>'));
// remove subGenerics
typeArgs = typeArgs.replaceAll("<[^>]*>", "");StringTokenizer tok = new StringTokenizer(typeArgs, ", ");
while (tok.hasMoreTokens())
[...]
-
2. Re: roaster: JavaCLassSource.getSuperType is throwing StringIndexOutOfBoundsException
gastaldi Nov 19, 2015 5:26 AM (in response to neoludo)Hi Ludovic,Yes, please open a JIRA for this at https://issues.jboss.org/browse/ROASTER
Thanks!