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

Static inline fields should allow circularity.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      An inline class should be able to have static inline fields referencing itself (directly or indirectly) without triggering ClassCircularityError or IncompatibleClassChangeError.
      As discussed with the team, the solution is to not flatten static inline fields and to delay the initialization of these fields to the class initialization phase (step 8).

        Attachments

          Activity

            People

            Assignee:
            fparain Frederic Parain
            Reporter:
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: