8238195: Lookup::defineClass should link the class to match the specification

Reviewed-by: alanb, chegar
This commit is contained in:
Mandy Chung 2020-04-21 07:09:18 -07:00
parent 1feb24e561
commit 1c6ca09b02
2 changed files with 32 additions and 2 deletions

View file

@ -1631,7 +1631,7 @@ public class MethodHandles {
}
/**
* Creates a class or interface from {@code bytes}
* Creates and links a class or interface from {@code bytes}
* with the same class loader and in the same runtime package and
* {@linkplain java.security.ProtectionDomain protection domain} as this lookup's
* {@linkplain #lookupClass() lookup class} as if calling