Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901694

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • 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

            jjg Jonathan Gibbons
            shurailine Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: