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

rmic does not support classes compiled with the option --enable-preview

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      We expect few, if any, systems to use both rmic (an old and deprecated technology) and preview features (new technology) simultaneously.
    • Interface Kind:
      Class file construct
    • Scope:
      JDK

      Description

      Summary

      The rmic tool documentation has no statement about support for preview features.

      Problem

      Classes compiled with preview features (JEP 12) use a special class file minor version number to indicate this. Tools should precisely define their support and behavior for class files with preview features. The rmic in JDK 12 will reject JDK 12 preview class files. It will accept JDK 11 preview class files (but this can be considered a bug). Rmic will not generate preview-enabled class files. There is no statement of support or non-support for preview features in the rmic tool documentation.

      Note that rmic has been deprecated since JDK 8.

      Solution

      Add a statement to the rmic tool documentation that says that rmic does not support reading or generation of class files with preview features.

      Specification

      The following is to be added to the rmic tool documentation:

      --

      Note:

      The rmic compiler does not support reading of class files that have been compiled with the --enable-preview option, nor does it support generation of stub or skeleton classes that have preview features enabled.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smarks Stuart Marks
                Reporter:
                lkuskov Leonid Kuskov
                Reviewed By:
                Alan Bateman, Lance Andersen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: