Paullo612 / mlfx

OpenJFX's FXML language AOT compler
Apache License 2.0
11 stars 0 forks source link

Error: Controller field is private and is annotated by @FXML annotation #39

Open infinite-dev22 opened 1 year ago

infinite-dev22 commented 1 year ago

I get this error when i run my project. Screenshot from 2023-06-03 08-05-18

Paullo612 commented 1 year ago

That's correct. Please change injected field visibility to public or package-private. See this commit in sample application. It brings changes necessary for mlfx.

Currently, there is only Micronaut framework based DI backend implementation. Micronaut cannot inject private fields without reflections.