[
https://issues.jboss.org/browse/FORGE-1005?page=com.atlassian.jira.plugin...
]
Vineet Reynolds commented on FORGE-1005:
----------------------------------------
I don't seem to find any easy way to detect if a type is nested or not, and obtain
it's outer type, before generating an appropriate {{equals()}} and {{hashCode()}}
implementation. It might make sense to spin it off as another issue, since it could imply
fixing other issues in the parser (ref: FORGE-471).
Consider primitive field types, array types and class hierarchies for
generation of equals and hashcode implementations
-----------------------------------------------------------------------------------------------------------------------
Key: FORGE-1005
URL:
https://issues.jboss.org/browse/FORGE-1005
Project: Forge
Issue Type: Enhancement
Components: Parsers / File Manipulation
Affects Versions: 1.3.3.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
The current generated implementations of {{equals}} and {{hashCode}} (in FORGE-995) do
not delegate to the super class of the object. This should be done for all types whose
immediate super classes are not {{Object}}.
Additionally, primitive types like {{float}} and {{double}} need to be treated
differently for both {{equals}} and {{hashCode}} implementations, while {{boolean}} and
{{long}} need to be treated differently for {{hashCode}} implementations.
Arrays also need to be considered for both {{equals}} and {{hashCode}} implementations.
--
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