mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8307468: CDS Lambda Proxy classes are regenerated in dynamic dump
Reviewed-by: iklam
This commit is contained in:
parent
024133b089
commit
25e85db61c
7 changed files with 220 additions and 23 deletions
|
@ -101,9 +101,6 @@ final class LambdaProxyClassArchive {
|
|||
boolean isSerializable,
|
||||
Class<?>[] altInterfaces,
|
||||
MethodType[] altMethods) {
|
||||
if (CDS.isDumpingArchive())
|
||||
throw new IllegalStateException("cannot load class from CDS archive at dump time");
|
||||
|
||||
if (!loadedByBuiltinLoader(caller) ||
|
||||
!CDS.isSharingEnabled() || isSerializable || altInterfaces.length > 0 || altMethods.length > 0)
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue