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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 11.0.8
    • 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


            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: