[
https://issues.jboss.org/browse/FORGE-1005?page=com.atlassian.jira.plugin...
]
Vineet Reynolds updated FORGE-1005:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
https://github.com/forge/java-parser/pull/5
The generator now includes a delegation to super.hashCode() and super.equals() when a
super class not of type Object is detected for the provided class.
Additionally, bugs in the earlier equals generator were fixed. The equals method no longer
returns immediately when the first field is equal; all fields need to be equal.
Additionally, {{instanceof}} is used to verify that the Class instances are equal to
account for subclasses, thereby ensuring that proxied instances are also equal.
Consider Superclasses other than Object during 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
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}}.
--
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