-
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
IllegalAccessError: class ModelResolver tried to access protected method AnnotatedMember.getAllAnnotations() #4212
Comments
It seems, that swagger-core version - 2.2.1 has same problem: BTW - There are two null checks - first in swagger using protected method. And second in jackson. I mean, that call annotations() only is sufficient solution. |
Hi there, |
Thanks for reporting this, should be fixed in #4214 by reverting to deprecated |
So which Maven release do I need to specify to get this fix? <dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-core</artifactId>
<version>2.2.2</version>
</dependency> Although not yet findable on Central, it can still be pulled. |
In my project I have swagger-core:2.2.0 and jackson-databind:2.8.11.3, and I have an exception with the following root cause:
Indeed, we can see here, line 579, that ModelResolver calls getAllAnnotations, which is protected until jackson-databind:2.9 I think.
However, the README says that swagger-core is compatible with "Jackson 2.4.5 or greater".
The text was updated successfully, but these errors were encountered: