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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • 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.

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

              Created:
              Updated:
              Resolved: