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

Improve error reporting for compiling against unexported package

    XMLWordPrintable

Details

    • b153
    • Verified

    Description

      Currently if code is compiled against unexported package following error is reported
      javac -d modules --module-path modules --module-source-path src src/m2/pkg2/B.java
      src\m2\pkg2\B.java:1: error: package pkg1 does not exist
      package pkg2; /** Klass B */ public class B { /** Field f */ public pkg1.A f; }

      Can javac report something like "pkg1 is not exported by module m1"?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: