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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: