✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Item 9 | Tema: Spații de nume, pachete și module | Nivel cognitiv: Aplicare | Tip: Răspuns scurt – shortanswer | Punctaj: 5 puncte | Timp recomandat: 4 minute.
Controller-ul MainController a fost mutat în pachetul com.ceiti.app.controller. La pornire apare eroarea:
IllegalAccessException: class javafx.fxml.FXMLLoader$ValueElement (in module javafx.fxml)
cannot access class com.ceiti.app.controller.MainController (in module com.ceiti.app)
because module com.ceiti.app does not export com.ceiti.app.controller to module javafx.fxml
module com.ceiti.app {
requires javafx.controls;
requires javafx.fxml;
opens com.ceiti.app to javafx.fxml;
exports com.ceiti.app;
// linia lipsă
}
Scrieți directiva lipsă care permite accesul reflexiv la pachetul controller-ului numai pentru modulul javafx.fxml.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!