Skip to content

Commit

Permalink
Make MethodHandles.classData public for JDK16
Browse files Browse the repository at this point in the history
Related: eclipse-openj9#11135
Related: eclipse-openj9#11359

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
  • Loading branch information
babsingh committed Jan 19, 2021
1 parent 5c4af9e commit 5fdf54e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5528,6 +5528,9 @@ static boolean permuteArgumentChecks(int[] permute, MethodType permuteType, Meth
* @return the classData casted to the appropriate type.
* @throws IllegalAccessException in the absence of full privilege access.
*/
/*[IF JAVA_SPEC_VERSION >= 16]*/
public
/*[ENDIF] JAVA_SPEC_VERSION >= 16 */
static <T> T classData(Lookup caller, String unused, Class<T> type) throws IllegalAccessException {
if (caller.hasFullPrivilegeAccess()) {
Object classData = MethodHandleNatives.classData(caller.accessClass);
Expand Down

0 comments on commit 5fdf54e

Please sign in to comment.