You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to test the behavior of Cglib proxies, we need to customize the classpath for both the compilation and the loading of classes in DynamicClassLoader.
The use case is as follows: AOT is processing candidates, which generates a cglib proxy in target/some-location. The class is available and then referenced in AOT-generated code.
Currently the compilation is failing as the class in target/some-location cannot be resolved. Once we fix that, we need to be able to load it in DynamicClassLoader.
The text was updated successfully, but these errors were encountered:
sbrannen
changed the title
Add support for additional classpath locations on TestCompiler
Add support for additional classpath locations in TestCompiler
Sep 13, 2022
snicoll
added a commit
to snicoll/spring-framework
that referenced
this issue
Sep 14, 2022
philwebb
changed the title
Add support for additional classpath locations in TestCompiler
Add support for additional dynamically generated classes in TestCompiler
Sep 20, 2022
philwebb
changed the title
Add support for additional dynamically generated classes in TestCompiler
Support cglib generated classes with TestCompiler
Sep 20, 2022
Update `TestCompiler` so that it can now load cglib generated classes.
This commit adds support to `DynamicJavaFileManager` so that it can
reference generated classes and adds a new lookup function to
`CompileWithTargetClassAccessClassLoader` to that it can load the
bytecode of generated classes directly.
See gh-29141
Co-authored-by: Phillip Webb <[email protected]>
To be able to test the behavior of Cglib proxies, we need to customize the classpath for both the compilation and the loading of classes in
DynamicClassLoader
.The use case is as follows: AOT is processing candidates, which generates a cglib proxy in
target/some-location
. The class is available and then referenced in AOT-generated code.Currently the compilation is failing as the class in
target/some-location
cannot be resolved. Once we fix that, we need to be able to load it inDynamicClassLoader
.The text was updated successfully, but these errors were encountered: