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

Cannot compile certain sources with --release

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Align --release behavior with behavior from actual releases.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      Implementation

      Description

      Summary

      Update symbol information to match compilation behavior when extending classes from non-exported packages.

      Problem

      Some API classes extend classes from non-exported packages (often from the java.base module). Examples include jdk.jfr.Event which extends jdk.internal.event.Event. As the current ct.sym data do not keep classes from non-exported packages, compilation against these classes fails.

      Solution

      Re-run updated tooling to add the affected types.

      Specification

      No specification changes; various symbol files updates for JDK 11 and up.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jlahoda Jan Lahoda
              Reviewed By:
              Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: