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
This can be reproduced using this sample. This code seems to be required to build a suitable MergedContextConfiguration but I wonder if it should be running at all since the context has already been fully prepared at this point. See also #32420
The text was updated successfully, but these errors were encountered:
snicoll
changed the title
Missing hints for ContextCustomizerKey
ImportsContextCustomizerFactory should not be invoked at runtime in an AOT-optimized context
Sep 19, 2022
snicoll
changed the title
ImportsContextCustomizerFactory should not be invoked at runtime in an AOT-optimized context
Disable ContextCustomizer implementations that only impacts the BeanRegistry in an AOT-optimized context
Sep 20, 2022
So it turns out that disabling the 3 implementations above were enough to fix the sample. It's a good first step in the right direction but we should be discussing how to make that a bit more declarative/obvious. This should be addressed by #32262
Running a
WebMvcTest
in a native image fails withThis can be reproduced using this sample. This code seems to be required to build a suitable
MergedContextConfiguration
but I wonder if it should be running at all since the context has already been fully prepared at this point. See also #32420The text was updated successfully, but these errors were encountered: