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

Provide a way to disable warnings for cross-modular links

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15, 16, 17
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      generic
    • OS:
      generic

      Description

      Since JDK-8240169 javadoc is able to create external links to libraries documented with "mismatching" modularity. However, a warning such as the following is generated when this happens:

      warning: The code being documented uses packages in the unnamed module, but the packages defined in <URL> are in named modules.

      This is a problem for projects using the -Werror option to treat warnings as errors. The message should probably be purely informational and not a warning.

      Update: It was decided that the warning should remain as default behaviour, but it should be possible to disable it via a new option.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hannesw Hannes Wallnoefer
              Reporter:
              hannesw Hannes Wallnoefer
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: