Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080588 VarHandles development
  3. JDK-8152645

VarHandle lookup access control tests

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs

      Description

      Create access control tests for VarHandle lookup of fields.

      Modifiers
      --
      1) non-static
      2) static
      3) final non-static?
      4) final static?


      Access

      1) public x;
      2) private x;
      3) protected x
      4) /* package */ x


      Lookup

      1) non-static
      2) static
      3) unreflect


      Lookup from

      1) within same class
      2) from another class in same package
      3) from another extending class in same package
      4) from another class in different package
      5) from another extending class in different package


      Consider enhancing later across module boundaries with and without qualified exports.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psandoz Paul Sandoz
              Reporter:
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: