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

Cannot compile certain sources with --release

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 18
    • tools
    • None
    • behavioral
    • minimal
    • Align --release behavior with behavior from actual releases.
    • add/remove/modify command line option
    • Implementation

      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.

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

              Created:
              Updated:
              Resolved: