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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 15
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved: