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

[Nestmates] Add a core reflection API to get nestmate information

    Details

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

      Description

      From Valhalla EG meeting Sept 27 - and Sept 13 minutes:

         2. Lazy loading - what should reflection do?
            Request from last meeting to lazily load the nest top so as to not break current nested class examples that work today (e.g. someone deletes the outer class)
            Proposal:
                 get list of Nestmates: model on getAnnotations - if you can’t find a nest member, skip it, do not throw an exception
      [ed. note: what if you can not find the nest top?]
                 check if two types are nestmates: throw LinkageError if nest top can not be found

        Attachments

          Activity

            People

            • Assignee:
              dholmes David Holmes
              Reporter:
              dholmes David Holmes
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: