[
https://issues.jboss.org/browse/ROASTER-45?page=com.atlassian.jira.plugin...
]
Nicolas Challut updated ROASTER-45:
-----------------------------------
Description:
If you use a generic with class name, an exception is thrown :
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size:
0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at java.util.Collections$UnmodifiableList.get(Collections.java:1211)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:345)
at
org.jboss.forge.roaster.model.impl.PropertyImpl.createField(PropertyImpl.java:215)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSourceMemberHolder.addProperty(AbstractJavaSourceMemberHolder.java:511)
at core.TestRoaster.main(TestRoaster.java:14)
was:
If you use a generic with class name, an exception is thrown :
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size:
0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at java.util.Collections$UnmodifiableList.get(Collections.java:1211)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:345)
at
org.jboss.forge.roaster.model.impl.PropertyImpl.createField(PropertyImpl.java:215)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSourceMemberHolder.addProperty(AbstractJavaSourceMemberHolder.java:511)
at core.TestRoaster.main(TestRoaster.java:14)
Using generic list with className
---------------------------------
Key: ROASTER-45
URL:
https://issues.jboss.org/browse/ROASTER-45
Project: Roaster
Issue Type: Bug
Affects Versions: 2.9.0.Final
Environment: Window 7 x64_86
Reporter: Nicolas Challut
If you use a generic with class name, an exception is thrown :
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size:
0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at java.util.Collections$UnmodifiableList.get(Collections.java:1211)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:345)
at
org.jboss.forge.roaster.model.impl.PropertyImpl.createField(PropertyImpl.java:215)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSourceMemberHolder.addProperty(AbstractJavaSourceMemberHolder.java:511)
at core.TestRoaster.main(TestRoaster.java:14)
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)