On Sat, 23 May 2026 08:42:34 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).
>
> Find a reproducer here: 
> [javafx_bug_report.tar.gz](https://github.com/user-attachments/files/28173230/javafx_bug_report.tar.gz).

@stechy1 I found this issue: https://bugs.openjdk.org/browse/JDK-8203870
It sounds very similar to your issue. Can you confirm it? There are more 
details in the comments as well.

If it is the same problem, can you also add a test case like in the ticket? And 
rename the PR title to fit the scheme we use here (see also the contributing 
guidelines).

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

PR Comment: https://git.openjdk.org/jfx/pull/2167#issuecomment-4543876239

Reply via email to