-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Add additional guard for web application detection in AOT #14147
Comments
That's a pattern we use in other places so if that becomes problematic, I'd prefer to understand where this is coming from. |
I haven't seen that pattern anywhere else in Spring or Spring Boot, which isn't to say that it's something we necessarily have to fix here. I opened oracle/graal#622, so we can see what they say over there before we do anything, I guess. |
There is |
|
No but I surely was. Sorry. |
See #14157 (comment). Closing for now and awaiting the result of oracle/graal#622 |
This code in
SpringApplication
blows up at runtime in a native image whenWebApplicationContext
is not on the classpath:Probably we could add an additional check that
WebApplicationContext
is present before we check forisAssignableFrom()
it?Adding this check worked for me:
but it didn't work to simply
catch Throwable
.The text was updated successfully, but these errors were encountered: