[macos]--add-modules ALL-MODULE-PATH not allowed with automatic modules

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 11.0.8
    • Component/s: tools

      A DESCRIPTION OF THE PROBLEM :
      When generating javadoc for an automatic module, the javadoc tool adds the arguments --add-modules ALL-MODULE-PATH. This throws the error "--add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module"

      This is similar to bug https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8220702 which was fixed in JDK13

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Create module with automatic-module-name in manifest
      2. Run "mvn clean install javadoc:jar" under JDK 11.0.8


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Javadoc is generated
      ACTUAL -
      Build fails with: --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module

      FREQUENCY : always


            Assignee:
            Anupam Dev
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: