JDK-8289389 : Fix warnings: type should also implement hashCode() since it overrides Object.equals()
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: openjfx19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-28
  • Updated: 2022-11-29
  • Resolved: 2022-07-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx20 b01Fixed
Related Reports
Blocks :  
Relates :  
Description
Eclipse Version 2022-06 (4.24.0) reports this warning in the following places:

```
The type CalculatedValue should also implement hashCode() since it overrides Object.equals()	CalculatedValue.java	line 29	/graphics/src/main/java/com/sun/javafx/css
The type FXMLLoader should also implement hashCode() since it overrides Object.equals()	FXMLLoader.java	line 107	/fxml/src/main/java/javafx/fxml
The type IntSet should also implement hashCode() since it overrides Object.equals()	IntSet.java	line 33	/graphics/src/main/java/com/sun/glass/ui/monocle
The type ListViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals()	ListViewTest.java	line 1700	/controls/src/test/java/test/javafx/scene/control
The type NativeMediaAudioClipPlayer.SchedulerEntry should also implement hashCode() since it overrides Object.equals()	NativeMediaAudioClipPlayer.java	line 454	/media/src/main/java/com/sun/media/jfxmediaimpl
The type NativeMediaAudioClipPlayer should also implement hashCode() since it overrides Object.equals()	NativeMediaAudioClipPlayer.java	line 47	/media/src/main/java/com/sun/media/jfxmediaimpl
The type TableViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals()	TableViewTest.java	line 5076	/controls/src/test/java/test/javafx/scene/control
The type TreeTableViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals()	TreeTableViewTest.java	line 5732	/controls/src/test/java/test/javafx/scene/control
The type TreeViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals()	TreeViewTest.java	line 3062	/controls/src/test/java/test/javafx/scene/control
The type WCRectangle should also implement hashCode() since it overrides Object.equals()	WCRectangle.java	line 28	/web/src/main/java/com/sun/webkit/graphics
```

Comments
Changeset: 075cc80b Author: Andy Goryachev <angorya@openjdk.org> Committer: Nir Lisker <nlisker@openjdk.org> Date: 2022-07-25 22:14:51 +0000 URL: https://git.openjdk.org/jfx/commit/075cc80b57095729fb43c17195f6b17322248748
25-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/821 Date: 2022-07-08 19:46:20 +0000
08-07-2022