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

Find/fix inconsistencies of getters/setters of a public property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11, 8
    • javafx

      The inconsistency happens if either the setter is implemented to do something in addition to calling someProperty().set(..) or the getter returns a value != property.get()

      The issue was detected in a comment to PR 683 (https://github.com/openjdk/jfx/pull/683#discussion_r758422823) for VirtualFlow.cellCountProperty and positionProperty, the former fixed along with the PR.

      There are others, though, which we might collect here (or somewhere else?) and fix in separate (?) issues, probably dependent on how frequent it occurs. Starting a list:

      DatePicker converterProperty (here the getter is the problem)

            Unassigned Unassigned
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: