-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code generation no longer supports a list of inner BeanDefinitions #29075
Comments
@sbrannen How can I reproduce this? |
Running the following in public static void main(String[] args) {
GeneratedFiles generatedFiles = new InMemoryGeneratedFiles();
TestContextAotGenerator generator = new TestContextAotGenerator(generatedFiles);
generator.processAheadOfTime(Stream.of(MethodLevelTransactionalSpringRunnerTests.class));
} |
Thanks Sam. The problem is that we need to write a |
Let me take this back. This is much simpler. There is a list of inner bean definitions and the code currently doesn't support that. It only support the case where a property or an attribute is a bean definition. Looking at the code, I don't understand why the extra delegate isn't passed to |
I've been spending a few hours on this and I need some help. My attempt is at https://github.com/snicoll/spring-framework/tree/gh-29075. I've tried to prevent the This is working but it is extra hard for collections as the generator itself loops over them. If the original value is a collection, you have to create a copy that does the wrapping upfront, with I am also confused about |
Overview
An unresolved
ResolvableType
inBeanDefinitionPropertyValueCodeGenerator
results in a stack trace similar to the following that occurred while processing anApplicationContext
created fromtransactionalTests-context.xml
inspring-test
.Related Issues
The text was updated successfully, but these errors were encountered: