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

Lookup::in should not allow target class be primitive or array class

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: core-libs

      Description

      MethodHandles.privateLookupIn currently disallows the target lookup class be a primitive or array class. This is mildly inconsistent with Lookup::in where it is possible to create a lookup with a primitive or array class as the lookup class (although maybe with reduced access). This issue tracks re-examining this issue to see if privateLookupIn should be relaxed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: