Fails with:
---
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/Util.java:195: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] public static void detectJDIExitEvent(VirtualMachine vm, Consumer<String> unbiddenExitHandler) {
[exec] ^
[exec] error: warnings found and -Werror specified
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIExecutionControl.java:64: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] protected abstract VirtualMachine vm() throws EngineTerminationException;
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIExecutionControl.java:105: warning: [exports] interface ReferenceType in module jdk.jdi is not indirectly exported using requires public
[exec] protected ReferenceType referenceType(VirtualMachine vm, String name) {
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIExecutionControl.java:105: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] protected ReferenceType referenceType(VirtualMachine vm, String name) {
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIDefaultExecutionControl.java:253: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] protected synchronized VirtualMachine vm() throws EngineTerminationException {
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIInitiator.java:92: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] public VirtualMachine vm() {
[exec] ^
[exec] 1 error
[exec] 6 warnings
---
Need to disable the lint in the ant build, as it is disabled in the make build.
---
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/Util.java:195: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] public static void detectJDIExitEvent(VirtualMachine vm, Consumer<String> unbiddenExitHandler) {
[exec] ^
[exec] error: warnings found and -Werror specified
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIExecutionControl.java:64: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] protected abstract VirtualMachine vm() throws EngineTerminationException;
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIExecutionControl.java:105: warning: [exports] interface ReferenceType in module jdk.jdi is not indirectly exported using requires public
[exec] protected ReferenceType referenceType(VirtualMachine vm, String name) {
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIExecutionControl.java:105: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] protected ReferenceType referenceType(VirtualMachine vm, String name) {
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIDefaultExecutionControl.java:253: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] protected synchronized VirtualMachine vm() throws EngineTerminationException {
[exec] ^
[exec] /usr/local/home/lahvac/src/jdk/tl.precommit/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/JDIInitiator.java:92: warning: [exports] interface VirtualMachine in module jdk.jdi is not indirectly exported using requires public
[exec] public VirtualMachine vm() {
[exec] ^
[exec] 1 error
[exec] 6 warnings
---
Need to disable the lint in the ant build, as it is disabled in the make build.