-
Notifications
You must be signed in to change notification settings - Fork 89
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
AnnotationScannerFactory is hard coded to load AnnotationScanner instances from the TCCL. #404
Comments
@phillip-kruger I don't think this fix is sufficient. AnnotationScannerFactory still loads AnnotationScanner instances using the TCCL, instead of the classloader passed to the OpenApiProcessor.modelFromAnnotations(...) method. See: |
Thanks, I'll look again in the morning |
Drop workaround for smallrye/smallrye-open-api#404
OpenApiProcessor.modelFromAnnotations(...) creates a new OpenApiAnnotationScanner instance which currently loads AnnotationScanner instances from the TCCL. Given that smallrye has no control which thread will call this method, it cannot assume that the intended annotation scanner instances (or indeed, if any) will be loadable from the TCCL.
Ideally OpenApiProcessor.modelFromAnnotations(...) should accept a ClassLoader instance from which to load AnnotationScanner instances.
The text was updated successfully, but these errors were encountered: