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();