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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 10
    • 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; }

              jjg Jonathan Gibbons
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: