Description
With Java > 11 sun.misc.Unsafe defineClass finally got removed and setAccessible(true) for java.* classes is not allowed anymore.
There is a solution via ClassLoaderProxyService as DefiningClassService (see OWB-1325) but this has the downside that package scoped methods are not accessible. A call to a package scope method of a NormalScope proxy thus cannot see the method in the proxy class and thus coerces to the empty original parent class. As this instance is not initialised all values are empty, resulting in NPE and zero values etc.