On Sun, 7 Sep 2025 00:12:31 GMT, Michael Strauß <[email protected]> wrote:

> Implementation of bulk change notifications for ObservableSet and 
> ObservableMap.

modules/javafx.base/src/test/java/test/javafx/collections/ObservableMapTest.java
 line 196:

> 194: 
> 195:         observer.assertMultipleCalls(call("one", "1", "2"), call("two", 
> "2", "3"));
> 196:     }

>From the description:


The implementation is fully backwards-compatible for listeners that
are unaware of the new API. If the next() method is not called, then
all subsequent changes are delivered as usual by repeated listener
invocations.

If a listener only fetches some changes of a bulk operation (but stops
halfway through the operation), the remaining changes will also be
delivered with repeated listener invocations.


1. should this be included in javadoc?
2. could we add a test for this scenario?

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1885#discussion_r2330590388

Reply via email to