Do not pass -limitmods to older targets with @compile.

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      This test: java/lang/reflect/OldenCompilingWithDefaults.java has a few @compile tags:
       * @compile -source 1.6 -target 1.6 OldenCompilingWithDefaults.java
       * @compile -source 1.7 -target 1.7 OldenCompilingWithDefaults.java
       * @compile OldenCompilingWithDefaults.java

      Test code does not depend on anything but java.base, but it is impossible to run this test with -javacoptions:"-limitmods java.base" because the -limitmods is passed down. The error is:

      javac: option -limitmods not allowed with target 1.6

            Assignee:
            Jonathan Gibbons
            Reporter:
            Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: