This comment has been minimized.

We're enforcing the use of ClassLoader.loadClass in case of a temporary ClassLoader now, as well as in case of a dynamically re-resolved class name from a SpEL expression. This will be available in the upcoming 5.1.3.BUILD-SNAPSHOT should hopefully address your regression.