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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 15
    • 15
    • core-libs

    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

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

              Dates

                Created:
                Updated:
                Resolved: