ObservableValue::map called twice
Nir Lisker
nlisker at gmail.com
Wed Sep 28 18:44:22 UTC 2022
Hi,
Running this code:
var label = new Label();
var tf = new TextField();
label.textProperty().bind(tf.textProperty().map(t -> {
System.out.println("in");
return t;
}));
produces the output::
in
in
>From what I see, the lambda should be called once, but it's called twice.
Looks like improper behavior to me.
- Nir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20220928/acdb9de4/attachment.htm>
More information about the openjfx-dev
mailing list