JDK-8234211 : allow discoverable javac plugins to be invoked by default
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-15
  • Updated: 2019-12-17
  • Resolved: 2019-12-09
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.
JDK 14
14 b27Fixed
Related Reports
CSR :  
Sub Tasks
JDK-8235684 :  
It would be good to allow javac plugins to be able to be invoked by default.

To facilitate this, the following method could be added to com.sun.source.util.Plugin

  boolean isDefault()

with a default implementation of "return false;"

All plugins found by the service loader that return isDefault:true and which have not been explicitly invoked already from the command line would be invoked with an empty set of args.

As part of this, it would be worth verifying that plugins can be loaded from modules and/or jlinked into an image.
URL: https://hg.openjdk.java.net/jdk/jdk/rev/8d507e815358 User: jjg Date: 2019-12-09 18:47:46 +0000