Package | Description |
---|---|
org.dromara.hutool.core.reflect.lookup |
MethodHandles.Lookup 创建封装,以根据不同的条件查找MethodHandles jdk8中如果直接调用 MethodHandles.lookup() 获取到的MethodHandles.Lookup 在调用findSpecial和unreflectSpecial
时会出现权限不够问题,抛出"no private access for invokespecial"异常,因此针对JDK8及JDK9+分别封装lookup方法。 |
Class and Description |
---|
LookupFactory
MethodHandles.Lookup 方法工厂,用于创建MethodHandles.Lookup 对象MethodHandles.Lookup 是一个方法句柄查找对象,用于在指定类中查找符合给定方法名称、方法类型的方法句柄。 |
Copyright © 2025. All rights reserved.