Yusuf Iskenderoglu created ROASTER-50:
-----------------------------------------
Summary: 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
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.3.11#6341)