-
Notifications
You must be signed in to change notification settings - Fork 353
ConstructorArgumentValues should only be assigned when indexed argument values are present #1403
Comments
@AzarguNazari Spring Cloud Stream isn't supported but that error is unrelated. Can you share a bit more detail about this bean? |
The error which you see in the picture is from the generated AOT classes on the target directory. The application runs fine without doing the AOT, but when the process of AOT happens, the generated optimized file shows this error. |
Yes I understood that already and I am afraid a screenshot is nowhere near enough information. Can you please share more information? If you can build a small sample we can run that would be ideal. |
I think I got it in the meantime. Looking at the screenshot and the code, it looks like this bean only has generic argument values (and no indexed values at all). We support the latter only which is why we start writing some code and then stop which leads to the compilation failure. |
@AzarguNazari note that this fix won't change your particular situation. Spring Cloud Stream isn't supported and neither are generic constructor argument values. But at least the generated code won't be invalid now. |
As I was running spring native (0.11.1) with the following dependencies:
I was getting the following error
The text was updated successfully, but these errors were encountered: