Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334429

ObservableValue docs wrongly state that reference equality is used to detect and report changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • jfx24
    • jfx15, jfx23
    • javafx

      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 by JDK-8252546 in JavaFX 16, so it is the text of the `@implSpec` that needs to be corrected.

            nlisker Nir Lisker
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: