-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Bean methods with generic array/varargs parameters break native compilation #30407
Comments
Thanks for the MRE. This regression is due to changes in Spring Framework 6.0.8 and does not occur when setting |
Let’s move this to Framework and figure out if this is a duplicate of oracle/graal#6510 |
Looks like another GraalVM bug, same kind and inded related to the same change on Spring side, but a different one since using Spring Framework It can be workaround by a I am going to create a related GraalVM issue and bring it to the attention of GraalVM team. |
I can confirm that this workaround helps. I had already tried adding Plugin.class but using Plugin[].class does the trick. |
Looks like indeed a GraalVM bug where a fix will be provided as discussed in oracle/graal#6529. It seems triggered by a bug in the GraalVM reflection metadata registration for generic arrays / varargs in OrderAwarePluginRegistry.of(T[]). Like #30383, and as discussed during the latest Spring Framework weekly meeting, I am going to try to add a temporary workaround in order to handle this use case, and update #30394 to mention we should also remove this additional workaround when fixed on GraalVM side. |
This commit adds a workaround for oracle/graal#6529 triggered by b374824. When the GraalVM fix will have reached a wide enough audience, it should be removed via spring-projectsgh-30394. Closes spring-projectsgh-30407
When upgrading from 3.0.5 to 3.0.6 I find that having spring-boot-starter-hateoas on the classpath breaks the native build.
The error I see is
I could make this go away by excluding the HyperMediaAutoConfiguration, which does not help if spring data is also on the classpath (there is a check for hateoas in spring data web configuration) which again breaks my build.
I created an mre at
https://github.com/eiswind/mre-hateoas-breaks-native
The text was updated successfully, but these errors were encountered: