mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8288730: Add type parameter to Lookup::accessClass and Lookup::ensureInitialized
Reviewed-by: mchung
This commit is contained in:
parent
37774556da
commit
a2d8f634de
2 changed files with 6 additions and 5 deletions
|
@ -422,8 +422,7 @@ public final class ConstantBootstraps {
|
|||
|
||||
private static <T> Class<T> validateClassAccess(MethodHandles.Lookup lookup, Class<T> type) {
|
||||
try {
|
||||
lookup.accessClass(type);
|
||||
return type;
|
||||
return lookup.accessClass(type);
|
||||
}
|
||||
catch (ReflectiveOperationException ex) {
|
||||
throw mapLookupExceptionToError(ex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue