The following text was added to the ObservableValue class specification by JDK-8228570 in JavaFX 15:
A change event indicates that the value has changed.
+Current implementing classes in JavaFX check for a change using reference equality (and not object equality, Object#equals(Object)) of the value.
This statement is incorrect. The implementing classes of ObservableValue in JavaFX check for a change using object equality, Object#equals(Object).
Note that this text was later moved to the `@implSpec` section byJDK-8252546 in JavaFX 16, so it is the text of the `@implSpec` that needs to be corrected.
A change event indicates that the value has changed.
+Current implementing classes in JavaFX check for a change using reference equality (and not object equality, Object#equals(Object)) of the value.
This statement is incorrect. The implementing classes of ObservableValue in JavaFX check for a change using object equality, Object#equals(Object).
Note that this text was later moved to the `@implSpec` section by
- relates to
-
JDK-8228570 Add various documentation clarifications
- Resolved
-
JDK-8332343 ListView's items property is not firing change event
- Closed
-
JDK-8252546 Move ObservableValue's equality check and lazy evaluation descriptions to @implSpec
- Resolved