javac should emit a warning (not an error) when `opens` references a package that does not exist

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools

      module m {
          opens p.resource;
      }

      $ javac -d mods/m/ src/m/module-info.java
      src/m/module-info.java:2: error: package is empty or does not exist: p.resources
          opens p.resources;
                 ^
      1 error

      The packaging part to this tracked as JDK-8170618.

            Assignee:
            Srikanth Adayapalam (Inactive)
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: