--patch-module doesn't work with JSR199 compiles

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: tools
    • None

      The --patch-module option doesn't seem to work with JSR199 compiles. The same set of options works fine from the command line.

      Using JDK9, compile and execute the attached program. Presently it gives an error for the JSR199 compile:
      Error: package exists in another module: java.base
      But no error for the command line compile.

      It is possible I'm supposed to give an extra option to make this work. In that case please tell me what to add.

        1. Class1.java
          5 kB
          Keimpe Bronkhorst

            Assignee:
            Unassigned
            Reporter:
            Keimpe Bronkhorst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: