Prevent classloader leak in ByteBuddy based BasicProxyFactoryImpl

Description

There's a cache holding Class instances in a static field of org.hibernate.bytecode.internal.bytebuddy.BasicProxyFactoryImpl which is never cleaned up.

It seems this cache is unlikely to have a significant performance impact so I think the simplest solution is to remove it.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure