Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Tests which rely on certain JavaFX Java modules are failing when executed in Eclipse IDE #727

Open
Oliver-Loeffler opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@Oliver-Loeffler
Copy link
Collaborator

With the new modular setup, certain tests are failing when executed from within Eclipse IDE.
The project is imported via "Import Existing Maven Project" and test execution was requested via context menu on kit project (run as JUnit tests).

Expected Behavior

  • tests shall run like on command line using Maven, no error expected
  • all tests shall pass after clean clone and import of project

Current Behavior

  • Many tests in kit, especially those of which require FXML loading, are failing with following exception:
java.lang.reflect.InaccessibleObjectException: Unable to make void javafx.fxml.FXMLLoader.setStaticLoad(boolean) accessible: module javafx.fxml does not "opens javafx.fxml" to module com.gluonhq.scenebuilder.kit

Steps to Reproduce

  • Import Scene Builder as Maven Project in Eclipse
  • Select kit project
  • Click with right mouse key on kit and open context menu
  • Select "Run as JUnit test" to invoke test execution

(repeat also with app)

Your Environment

  • Windows 11 23H2
  • OpenJDK 64-Bit Server VM Temurin-23+37 (build 23+37
  • Apache Maven 3.9.9
  • Eclipse 2024-09, 4.33.0, Build id: 20240905-0614

Screenshots

grafik

@Oliver-Loeffler Oliver-Loeffler added the bug Something isn't working label Sep 27, 2024
@Oliver-Loeffler Oliver-Loeffler added this to the 24 milestone Sep 27, 2024
@Oliver-Loeffler Oliver-Loeffler modified the milestones: 24, 25 Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant