Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Conversation

@pixel13
Copy link

@pixel13 pixel13 commented Oct 20, 2021

While scanning in search of GraphQL error handlers, GraphQLErrorHandlerFactory takes into consideration the original method if the bean it's working on is a Spring CGLIB proxy.

In this way, methods annotated with @ExceptionHandler are detected as GraphQL error handlers even if the containing bean is wrapped inside a Spring AOP proxy.

@oliemansm oliemansm merged commit 79906f9 into graphql-java-kickstart:master Jan 22, 2022
@pixel13 pixel13 deleted the bugfix/736-exception-handler-proxy-support branch January 22, 2022 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants