[
https://issues.jboss.org/browse/FORGE-1026?page=com.atlassian.jira.plugin...
]
Vineet Reynolds updated FORGE-1026:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
https://github.com/forge/java-parser/pull/6
The fix ensures that ArrayTypes are not converted into plain SimpleTypes when the method
return type is parsed.
It should be noted for the future that is done via an ugly hack, and we should probably
revisit the design of this section of the parser.
JavaParser fails to identify types of ArrayType in method return
types
----------------------------------------------------------------------
Key: FORGE-1026
URL:
https://issues.jboss.org/browse/FORGE-1026
Project: Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 1.3.3.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
{{org.jboss.forge.parser.java.Method.getQualifiedReturnType()}} converts array types into
simple types resulting in loss of information about the return type.
This is due to Arrays being stripped away when
{{org.jboss.forge.parser.java.impl.AbstractJavaSource.resolveType(String)}} is invoked.
The type returned by {{AbstractJavaSource}} omits any information about the ArrayType in
the provided argument, and this is not accounted for when returning the qualified type.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira