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

[Nestmates] Update Class.getNestMembers to allow for duplicates

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: