-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Swagger Core is not compatible with Jackson 2.18.x #4755
Comments
Hi @jamesnetherton thank you for reporting, possible problem should be solved by: #4756, Closing ticket for now, If you will experience any problem, feel free to reopen |
Hi,
After a bit of debugging, I found the reason: I think this problem would be fixed, if the first executed method would just return a value anyways, if no exception during the method execution occurred. E.g. try {
AnnotatedMember jsonValueMember = invokeMethod(beanDesc, "findJsonValueAccessor");
if (jsonValueMember != null) {
return jsonValueMember.getType();
}
return null;
} catch (Exception e) {
LOGGER.warn("jackson BeanDescription.findJsonValueAccessor not found, this could lead to inaccurate result, please update jackson to 2.9+");
} edit: I've encountered this problem with Swagger-Core 2.2.26, but also looked in the current master branch, and saw that the relevant code fragment is the same, as the one I've debugged with |
fixed in #4806 4806 |
ModelResolver.findJsonVauleType
references JacksonBeanDescription.findJsonVauleMethod
which was deprecated since Jackson 2.9. It got removed in Jackson 2.18.0, hence there's the potential for runtime errors if Jackson 2.18.x is on the classpath. Or build time errors if GraalVM is used to create a native application.The text was updated successfully, but these errors were encountered: