Resolve generic JavaFX binding targets and verify them in IntelliJ

This commit is contained in:
2026-11-24 23:03:31 +01:00
parent 2d5e6be4b1
commit c980d0c6f5
10 changed files with 585 additions and 61 deletions
+2
View File
@@ -26,6 +26,8 @@ Discovery owns a separate workflow so it does not replace the canvas or interact
FXML parsing disables external entities and DOCTYPE. Inputs, scene-node counts, path expansion, target counts and protocol payloads are bounded. Ambiguous imports, duplicate IDs, missing classes, invalid XML and absent declarations produce diagnostics. Attached-property binding discovery, open child-draft metadata overlays, broader custom metadata and complete collection compatibility remain later extensions, not silently inferred support.
A field matching the FXML ID can supply generic arguments that are erased in the FXML element. For example, declaring `@FXML private ComboBox<String> security` on the controller types both `security.value` and the elements of `security.items`. The worker follows inherited controller fields, control superclasses and JavaFX property interfaces using compiled signatures. An invariant observable-list binding toward the view requires matching element types. Incompatible list elements and unrelated scalar destinations receive a diagnostic. Wildcards and raw selectors retain an unresolved result until the project provides a concrete type.
## Qualification
Tests cover non-initializing signature discovery, nested and collection metadata, direction-dependent assignability, read-only targets, incompatible targets, secure parsing, metadata codec bounds and capability negotiation. Real classpath/module-path Person fixtures check Component Model compatibility and absence of Model, Controller and provider construction/initialization. Connected contracts test the worker protocol in both document adapters; live shared Kit checks use the same browser in standalone and the registered IntelliJ editor and verify source preservation.