[
https://issues.jboss.org/browse/FORGE-371?page=com.atlassian.jira.plugin....
]
Lincoln Baxter III commented on FORGE-371:
------------------------------------------
Fixed. Also added a useful method to AbstractJavaSource:
{code}
/**
* Given a simple or qualified type, resolve that type against the available imports
and return the referenced type.
* If the type cannot be resolved, return the given type unchanged.
*/
public String resolveType(String type);
{code}
Method.getReturnType does not return fully qualified name
---------------------------------------------------------
Key: FORGE-371
URL:
https://issues.jboss.org/browse/FORGE-371
Project: Forge
Issue Type: Feature Request
Reporter: Richard Kennard
Assignee: Lincoln Baxter III
Fix For: 1.0.0.Beta4
org.jboss.forge.parser.java.Method.getReturnType returns a String, rather than a
JavaClass, because "there's no way to tell if the type we are returning is
actually something we can get the sources of" (Lincoln).
I think this is fine, but if we're using Strings it needs to be the fully qualified
name, or else there's no way to understand what it actually is. At the moment it just
returns "Long" instead of "java.lang.Long" and "Date"
instead of "java.util.Date" etc.
--
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