[
https://issues.jboss.org/browse/FORGE-387?page=com.atlassian.jira.plugin....
]
Richard Kennard updated FORGE-387:
----------------------------------
Description:
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.
was:
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 method '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.
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
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:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira