javac should not compile a module if it requires java.base with modifiers

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 10
    • Affects Version/s: 10
    • Component/s: tools
    • None
    • b38

        JDK-8182734 has changes to JLS to forbid compiling a module if it requires java.base with modifiers. I believe the following should not compile with `javac --release 10`

        module foo { requires static java.base; }
        module foo { requires transitive java.base; }
        module foo { requires static transitive java.base; }

              Assignee:
              Jonathan Gibbons
              Reporter:
              Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: