On Wed, 13 May 2026 14:01:46 GMT, Petr Štechmüller <[email protected]> wrote:
> ProxyBuilder is used by the FXML loader to instantiate classes whose > constructors are annotated with `@NamedArg`. When such a class also exposes a > read-only `Map` property (e.g. getProperties() — the same pattern used by > `javafx.scene.Node`), setting child elements under that property in FXML > caused incorrect behaviour or a runtime error. > > **Root cause:** _getReadOnlyProperty()_ always returned an `ArrayListWrapper` > regardless of the actual **getter** return type. When the getter returns a > `Map`, an `ArrayListWrapper` is the wrong container and the entries are never > transferred to the real map on the object. > > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: dcf8ec44 Author: Petr Štechmüller <[email protected]> Committer: Marius Hanl <[email protected]> URL: https://git.openjdk.org/jfx/commit/dcf8ec44f9ac438d914a9be3e11781f485da3b59 Stats: 1387 lines in 21 files changed: 1329 ins; 1 del; 57 mod 8203870: ProxyBuilder cannot handle Read-Only List Properties properly Reviewed-by: angorya, mhanl ------------- PR: https://git.openjdk.org/jfx/pull/2167
