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

Compilation against a modular, multi-release JAR erroneous with --release

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      x86_64
    • OS:
      windows_10
    • Verification:
      Verified

      Description

      ADDITIONAL SYSTEM INFORMATION :
      This is reproducible on recent builds of Java 9-13 (including 11.0.5 and the latest 11.0.6 build).

      A DESCRIPTION OF THE PROBLEM :
      When compiling against a multi-release JAR with a module-info class in a version specific subdirectory, compilation works fine as of JDK-8156568. However, when compiling against a specific version using the "--release" flag, javac seems to categorize the MRJAR on the module path as automatic module.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      A MCVE is available here: https://github.com/TheMrMilchmann/MCVE/tree/jdk/javac-modular-mrjar-dep-automatic-module-warning


      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: