]
Lincoln Baxter III closed FORGE-387.
------------------------------------
Fix Version/s: 1.0.0.Beta4
Resolution: Done
org.jboss.forge.parser.java.Method needs getGenericReturnType (or
equivalent)
-----------------------------------------------------------------------------
Key: FORGE-387
URL:
https://issues.jboss.org/browse/FORGE-387
Project: Forge
Issue Type: Enhancement
Reporter: Richard Kennard
Assignee: Lincoln Baxter III
Fix For: 1.0.0.Beta4
Currently, if I have a method...
public List<Foo> getList();
...then org.jboss.forge.parser.java.Method.getReturnType() returns...
java.util.List
There doesn't appear to be a way to get hold of the generic type <Foo>?
java.lang.Method has a special 'getGenericReturnType' method which returns a
ParameterizedType which you can then call 'getActualTypeArguments' on. I don't
necessarily like that API, but we need some equivalent to it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: