Code generation for constructor arguments must cast null
indexed argument value
#31508
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
Now that #31495 has been resolved, loading the AOT-optimized
ApplicationContext
forSpr9799XmlConfigTests
fails with the following cause.Generated Code:
This line is the source of the exception:
Since
addIndexedArgumentValue(...)
is overloaded, the compiler picks the variant that accepts aValueHolder
when the second argument isnull
, and that variant has anotNull
check for theValueHolder
.Updating the code generator so that it generates the following seems to be one way to address this issue.
The text was updated successfully, but these errors were encountered: