public class JavacPluginBootstrap extends Object implements com.sun.source.util.Plugin
JavacPlugin
can't be used directly with Java 16+ because stricter accessibility changes were added to
internal modules (JEP 396: Strongly Encapsulate JDK Internals by Default). For instance, jdk.compiler
exports
fewer packages. This means we must make the necessary module changes via bypassJava9Security() before JavacPlugin
is constructed, which is the purpose of this bootstrap plugin; it makes dynamic module changes before
constructing and delegating to JavacPlugin
.Constructor and Description |
---|
JavacPluginBootstrap() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
void |
init(com.sun.source.util.JavacTask task,
String... args) |
Copyright © 2024. All rights reserved.