]
Radai Rosenblatt commented on ROASTER-88:
-----------------------------------------
i put up a proposed fix -
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
Fix For: 2.x Future
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}