[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Change of default behavior of When
From:       Nir Lisker <nlisker () gmail ! com>
Date:       2018-06-29 22:02:25
Message-ID: CA+0ynh8w=SKwc_SHMTZNrPQT09d23opzXpgkiNmRUQnZ+6cObQ () mail ! gmail ! com
[Download RAW message or body]

Hi all,

The class javafx.beans.binding.When is using eager evaluation of its
arguments [1]. Kevin and I discussed the idea of changing this default
behavior to the more intuitive lazy evaluation as done in a simple ternary
expression. This is a potentially breaking change for current code that
(for some reason) relies on both values being evaluated regardless of the
condition's value. This behavior is not documented.

If anyone has any reservations, please voice them over the next few days.

Thanks,
Nir

[1] https://bugs.openjdk.java.net/browse/JDK-8089579
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic