-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Native image generator ought to be able to ignore type errors from unloadable annotation attributes #597
Comments
For reference, we have seen this kind of error in micronaut. See: #470 (comment). The proposed solution is: #470 (comment). |
I am currently blocked in Spring Fu due to this issue, just doing |
@sdeleuze we are working on a major refactoring of the logic that deals with incomplete class paths. |
@cstancu it looks like this is an issue for Micronaut users now too with the addition of the processing of Is there a way to disable the logic for |
The automatic registration of services can be disabled with the |
This issue should be fixed as of RC12. |
In Spring Boot we use this idiom a lot:
and then
where
Jsonb.class
is often not available at runtime,The
@Import
references classes whose annotations might not be inspectable at runtime, but since we never actually try to do that, it should be fine. In fact, typically, at most one of those 3 will be available (sometimes none). GraalVM barfs on this:The classes and instructions for how to build the jar and the classpath are in the usual place: https://github.com/dsyer/spring-boot-micro-apps/tree/func.
The text was updated successfully, but these errors were encountered: