From f60d8bcd1245ac62271d82408a13a37a3de3febf Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Fri, 25 Jun 2021 18:23:24 +0100 Subject: [PATCH] HHH-14734 No good reason tu use TypeCache(s) with WithInlineExpunction --- .../hibernate/bytecode/internal/bytebuddy/ByteBuddyState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/ByteBuddyState.java b/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/ByteBuddyState.java index 138ced85c4..90c5b78a08 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/ByteBuddyState.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/internal/bytebuddy/ByteBuddyState.java @@ -78,8 +78,8 @@ public final class ByteBuddyState { ByteBuddyState(ClassFileVersion classFileVersion) { this.byteBuddy = new ByteBuddy( classFileVersion ).with( TypeValidation.DISABLED ); - this.proxyCache = new TypeCache.WithInlineExpunction( TypeCache.Sort.WEAK ); - this.basicProxyCache = new TypeCache.WithInlineExpunction( TypeCache.Sort.WEAK ); + this.proxyCache = new TypeCache( TypeCache.Sort.WEAK ); + this.basicProxyCache = new TypeCache( TypeCache.Sort.WEAK ); if ( System.getSecurityManager() != null ) { this.classRewriter = new SecurityManagerClassRewriter();