Confusing error while compiling with not existing module source path

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 9, 9-repo-jigsaw
    • Component/s: tools

      To reproduce create class D in package p
      "package p; public class D { }"
      and run
      $javac -d classes -modulesourcepath not_exist p/D.java

      p\D.java:1: error: unnamed package is not allowed in named modules
      package p; public class D { }
      ^
      1 error

            Assignee:
            Jonathan Gibbons
            Reporter:
            Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: