JDK-8371158 : Investigate removing gradle workaround for setting javac options
  • Type: Bug
  • Component: javafx
  • Sub-Component: build
  • Affected Version: jfx26
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-11-03
  • Updated: 2025-11-03
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
tbdUnresolved
Related Reports
Blocks :  
Description
Our build.gradle logic loops through all tasks looking for JavaCompile tasks to add javac option as a workaround for a gradle javac limitation described as follows:

    // The following block is a workaround for the fact that presently Gradle
    // can't set the -XDignore.symbol.file flag, because it appears that the
    // javac API is lacking support for it. So what we'll do is find any Compile
    // task and manually provide the options necessary to fire up the
    // compiler with the right settings.

After fixing JDK-8179462, we no longer set -XDignore.symbol.file so we might consider removing this workaround.
Comments
I'm not sure whether this is worth doing, since the current implementation of passing javac options has been in place since FX 8, and works well.
03-11-2025