JDK-8265514 : Openjfx controls running tests broken (Eclipse)
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: openjfx17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-20
  • Updated: 2021-04-27
  • Resolved: 2021-04-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx17Fixed
Related Reports
Relates :  
Description
trying to run any test (in Eclipse) fails with:

Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package test.javafx.css in both module javafx.graphics and module javafx.controls

This was introduced by JDK-8204568: it created a test package in controls with the same name as a test package in graphics. Gradle runs are okay. Nevertheless, same packages in different modules are suboptimal. 

Simplest (?) fix might be to rename the test package in controls, it doesn't follow the usual conventions (which I assume to be the same as the classes that are tested reside in) anyway. 

Comments
Changeset: dfda00df Author: Ambarish Rapte <arapte@openjdk.org> Date: 2021-04-23 02:29:47 +0000 URL: https://git.openjdk.java.net/jfx/commit/dfda00df
23-04-2021

> Simplest (?) fix might be to rename the test package in controls That seems best to me, too.
20-04-2021

We should fix this. This would likely be a problem loading and running the tests from IntelliJ as well (or Netbeans, but I think NB still has other issues).
20-04-2021