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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9, 10
    • 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
      ---

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

              Created:
              Updated:
              Resolved: