[JBoss JIRA] (ROASTER-50) Roaster tries to add Generic Type Variable as a java import
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-50?page=com.atlassian.jira.plugin... ]
George Gastaldi closed ROASTER-50.
----------------------------------
Fix Version/s: 2.19.0.Final
(was: 2.x Future)
Resolution: Done
I have pushed a fix to the master branch. Can you give it a try and provide some feedback?
Thank you!
> Roaster tries to add Generic Type Variable as a java import
> -----------------------------------------------------------
>
> Key: ROASTER-50
> URL: https://issues.jboss.org/browse/ROASTER-50
> Project: Roaster
> Issue Type: Bug
> Reporter: Yusuf Iskenderoglu
> Assignee: George Gastaldi
> Fix For: 2.19.0.Final
>
>
> When you create a new Method with a Type variable, you cannot use it in a parameter, it crashes with:
> {code}
> Exception in thread "main" java.lang.IllegalArgumentException: Cannot import class without a package [T]
> at org.jboss.forge.roaster.model.impl.AbstractJavaSource.addImport(AbstractJavaSource.java:172)
> at org.jboss.forge.roaster.model.impl.MethodImpl.addParameter(MethodImpl.java:682)
> at de.check24.finance.baufi.roast.main.Roast.parse(Roast.java:225)
> {code}
> This is due to AbstractJavaSource.requiresImport() not returning false for type variables.
> Can you consider this for the next release, too?
> Thanks!
> Related To: ROASTER-48
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)