]
George Gastaldi closed ROASTER-88.
----------------------------------
Fix Version/s: 2.17.4.Final
(was: 2.x Future)
Assignee: Radai Rosenblatt
Resolution: Done
Thank you so much! You rock!
cant add primitive array fields to generated class
--------------------------------------------------
Key: ROASTER-88
URL:
https://issues.jboss.org/browse/ROASTER-88
Project: Roaster
Issue Type: Bug
Components: JDT
Affects Versions: 2.17.3.Final
Environment: openjdk 8
fedora 23
Reporter: Radai Rosenblatt
Assignee: Radai Rosenblatt
Fix For: 2.17.4.Final
when trying to generate a java class with a primitive array field, the following
exception is thrown:
{noformat}
java.lang.IllegalArgumentException: Cannot import class without a package [I]
at
org.jboss.forge.roaster.model.impl.AbstractJavaSource.addImport(AbstractJavaSource.java:175)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSource.addImport(AbstractJavaSource.java:958)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:336)
at org.jboss.forge.roaster.model.impl.PropertyImpl.createField(PropertyImpl.java:215)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSourceMemberHolder.addProperty(AbstractJavaSourceMemberHolder.java:554)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSourceMemberHolder.addProperty(AbstractJavaSourceMemberHolder.java:565)
{noformat}