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

improve the javadoc for Lookup::dropLookupModes w.r.t. dropping UNCONDITIONAL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      Lookup::dropLookupMode specifies that:

      If UNCONDITIONAL is dropped then the resulting lookup has no access.

      This happens only if this Lookup object has a public lookup (i.e. UNCONDITIONAL is set) which can be produced by MethodHandles::publicLookup or teleported from a public lookup to any accessible class via publicLookup().in(X).

      It has no effect if this Lookup object does not have UNCONDITIONAL bit on.

      The documentation should be improved to clarify that.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: