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

[Nestmates] Update access control exception handling and other features per final JVMS proposal

    Details

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

      Description

      The process for nest membership validation and the type of exception thrown has been updated.
        - same package check is first
        - throw IncompatibleClassChangeError instead of IllegalAccessError

      Update all tests

      Spec no longer precludes duplicate entries in NestMembers attribute.

      Spec allows a reference to self in the NestMembers attribute

      Spec precludes a reference to self in NestHost attribute

      Add tests for self-referential attributes: nesthost->this; nestmembers->this

      Add tests for duplicate NestMembers entries.

      NOTE: These changes do not include the JVMS invokeinterface changes that do not relate directly to implementing nestmates. Those changes are still under discussion.

        Attachments

          Issue Links

            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: