Re: ObservableValue::map called twice

2022-09-29 Thread John Hendrikx
Hi Nir, This is sort of normal behavior, and is a consequence of how listeners are only registered when themselves observed.  This interacts with the concept of being valid/invalid.  There is a long comment about it in LazyObjectBinding, but this is the code that is causing this:     private

ObservableValue::map called twice

2022-09-28 Thread Nir Lisker
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 imp