JDK-8337281 : build.gradle assumes all modules are named "javafx.$project"
  • Type: Bug
  • Component: javafx
  • Sub-Component: build
  • Affected Version: jfx24
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-07-26
  • Updated: 2024-08-16
  • Resolved: 2024-08-02
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
jfx24 b04Fixed
Related Reports
Blocks :  
Blocks :  
Description
The JavaFX build.gradle logic is composed of a root gradle project and several subprojects. Each subproject that builds a JavaFX module has a "moduleName" property with the name of the module.

Most places in build.gradle use that property, but there are a few places in build.gradle where the build logic derives the name from the name of the project by prepending "javafx." to the name. This will fail for modules with a prefix other than "javafx.". Further there is one place where the logic replaces dots with dashes in the name, but it does so by prefixing the project name with "javafx-" rather than doing a string replacement. This means that a module with more than one dot will only have the first one replaced.

I discovered this while working on the following two RFEs, both of which hit this bug:

JDK-8309381: Support JavaFX incubator modules
JDK-8337280: Include jdk.jsobject module with JavaFX

Both of them need this bug to be fixed, so I am separating it out into its own issue.
Comments
Changeset: 0fa50cbb Branch: master Author: Kevin Rushforth <kcr@openjdk.org> Date: 2024-08-02 20:13:20 +0000 URL: https://git.openjdk.org/jfx/commit/0fa50cbbd9878ca7ec0e1bfcc5567bf52e3b8db2
02-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1518 Date: 2024-07-26 17:04:17 +0000
26-07-2024