Confusing error when unnamed module reads multiple modules exporting the same package.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9, 10
    • Component/s: tools
    • None

      Download the attached testcase, unpack, fill a path to javac in "unname-reads/run.sh" and then run the script.

      This will yield:
      ---
      error: module reads package api from both mb and ma
      1 error
      ---

      The module name is empty here, which is confusing. Should be like:
      ---
      error: the unnamed module reads package api from both mb and ma
      1 error
      ---

            Assignee:
            Jan Lahoda
            Reporter:
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: