[JBoss JIRA] (ROASTER-88) cant add primitive array fields to generated class
by Radai Rosenblatt (JIRA)
Radai Rosenblatt created ROASTER-88:
---------------------------------------
Summary: cant add primitive array fields to generated class
Key: ROASTER-88
URL: https://issues.jboss.org/browse/ROASTER-88
Project: Roaster
Issue Type: Bug
Affects Versions: 2.17.3.Final
Environment: openjdk 8
fedora 23
Reporter: Radai Rosenblatt
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}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)