If a class is generated as part of AOT processing (typically a cglib proxy), the generated code can't refer to it at the moment as it is not available on the classpath used by the compiler.

This affects both the Maven and Gradle plugins.