RFR: 8309381: Support JavaFX incubator modules

Kevin Rushforth kcr at openjdk.org
Fri Nov 1 22:22:07 UTC 2024


This PR add the necessary support for [JavaFX Incubator Modules](https://github.com/kevinrushforth/jfx/blob/jfx.incubator/INCUBATOR-MODULES.md). It includes the following:

1. Changes to the build scripts `build.gradle` and `settings.gradle` to document where to add your incubator module. Also added `jlink` flags to not resolve incubator modules by default and warn when resolving (same as is done for JDK incubator modules).
2. A utility class to produce warnings when first using an incubator module.
3. Changes to `javafx.base/module-info.java` to document where to add the needed qualified exports to your module to access the utility class in 2.

See PR #1617 for a sample module that is built on top of this PR's source branch.

This is almost ready to review. I will take it out of Draft in the next day or so.

-------------

Commit messages:
 - Remove call to doPrivileged
 - 8309381: Support JavaFX incubator modules

Changes: https://git.openjdk.org/jfx/pull/1616/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1616&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8309381
  Stats: 173 lines in 4 files changed: 169 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jfx/pull/1616.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1616/head:pull/1616

PR: https://git.openjdk.org/jfx/pull/1616


More information about the openjfx-dev mailing list