Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167442

Langtools ant build not working after addition of -Xlint:exports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • tools
    • None
    • b141
    • Not verified

      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.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: