On Thu, 14 Jul 2022 23:37:31 GMT, John Hendrikx <[email protected]> wrote:
> I introduced a bug with the fluent bindings PR which affects all
> ObjectBindings.
>
> This is the code that fails:
>
> SimpleObjectProperty<Boolean> condition = new
> SimpleObjectProperty<>(true);
> ObservableValue<String> binding = condition.map(Object::toString);
>
> binding.addListener(o -> { binding.getValue(); });
>
> condition.set(false);
>
> assertEquals(false, binding.getValue()); // returns null (!)
>
> This PR fixes this problem and adds a test case to cover it.
Good catch. And yes, this needs to go into JavaFX 19.
-------------
PR: https://git.openjdk.org/jfx/pull/829