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

[Nestmates] Update Class.getNestMembers to allow for duplicates

    XMLWordPrintable

    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

      The NestMembers attributes is allowed to contain duplicates and references to "self" - though javac would never produce such an entry. To avoid penalizing all correct uses of NestMembers the getNestMembers() call does not attempt to remove any duplicates, so the spec needs some minor adjustments. An API adjustment plus an ImplNote should suffice.

      Also the current wording:

         * <p>Each listed nest member must be validated by checking its own
         * declared {@linkplain #getNestHost() nest host}. Any exceptions that occur
          * as part of this process will be thrown.

      can be confusing because getNestHost never throws any exceptions - so we should not link to getNestHost.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: