[
https://issues.jboss.org/browse/ROASTER-49?page=com.atlassian.jira.plugin...
]
Yusuf Iskenderoglu updated ROASTER-49:
--------------------------------------
Description:
Roaster does not like question-mark-operator:
{code}
to.addField()
.setFinal(true)
.setName("AS_MAP")
.setPrivate()
.setStatic(true)
.setType("HashMap<Class<?>, Object>")
.setLiteralInitializer("new HashMap<>();");
{code}
cannot be used:
{verbatim}
Exception in thread "main" java.lang.IllegalArgumentException: Cannot parse type
parameter ?
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:196)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:198)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:334)
:support:main:roastJavaExecTask FAILED
{verbatim}
was:
Roaster does not like question-mark-operator:
{code}
to.addField()
.setFinal(true)
.setName("AS_MAP")
.setPrivate()
.setStatic(true)
.setType("HashMap<Class<?>, Object>")
.setLiteralInitializer("new HashMap<>();");
{code}
cannot be used:
{verbatim}
Exception in thread "main" java.lang.IllegalArgumentException: Cannot parse type
parameter ?
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:196)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:198)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:334)
at de.check24.finance.baufi.roast.main.Roast.parse(Roast.java:244)
at de.check24.finance.baufi.roast.main.Roast.main(Roast.java:396)
:support:main:roastJavaExecTask FAILED
{verbatim}
Impossible to create a field of type HashMap<Class<?>,
Object>
--------------------------------------------------------------
Key: ROASTER-49
URL:
https://issues.jboss.org/browse/ROASTER-49
Project: Roaster
Issue Type: Feature Request
Reporter: Yusuf Iskenderoglu
Roaster does not like question-mark-operator:
{code}
to.addField()
.setFinal(true)
.setName("AS_MAP")
.setPrivate()
.setStatic(true)
.setType("HashMap<Class<?>, Object>")
.setLiteralInitializer("new HashMap<>();");
{code}
cannot be used:
{verbatim}
Exception in thread "main" java.lang.IllegalArgumentException: Cannot parse
type parameter ?
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:196)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:198)
at org.jboss.forge.roaster.model.impl.FieldImpl.setType(FieldImpl.java:334)
:support:main:roastJavaExecTask FAILED
{verbatim}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)