Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
UI Framework & 6.2 Ramp up 15
-
1
Description
Lombok's @Data annotation does not include fields from the super class in the generated equals and hashCode methods. This can lead to subtle bugs when instances of such classes are used as keys in a map. We should use the @EqualsAndHashCode(callSuper = true) annotation where necessary to explicitly include fields of super classes. Potential candidates are:
- CompositeFieldDefinition
- ConfiguredComplexPropertyDefinition
- ConfiguredMultiFormDefinition
- ConfiguredSwitchableFieldDefinition
- JcrNodeFromLocationResolutionDefinition
- JcrPropertyProvider
- NotificationWorkbenchDefinition
- TasksWorkbenchDefinition
Checklists
Attachments
Issue Links
- is cloned by
-
MGNLPN-464 Some @Data annotated classes do not include fields from superclass in equals / hashCode
-
- Closed
-
-
PAGES-232 Some @Data annotated classes do not include fields from superclass in equals / hashCode
-
- Closed
-
- relates to
-
MGNLPN-464 Some @Data annotated classes do not include fields from superclass in equals / hashCode
-
- Closed
-
-
PAGES-232 Some @Data annotated classes do not include fields from superclass in equals / hashCode
-
- Closed
-