Skip to content
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

Check all interfaces, including ancestor interfaces, when analyzing t… #99

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

anuraaga
Copy link
Collaborator

…hrift service.

Currently, a thrift handler must directly inherit from the thrift service implementation to be processed by armeria properly. This can actually crop up often for spring users, where it's not uncommon to be dealing with automatically codegenned subclass proxies if using AOP.

@anuraaga
Copy link
Collaborator Author

Travis CI is too lame :(

Set<Class<?>> interfaces = new HashSet<>();
Collections.addAll(interfaces, clz.getInterfaces());
if (clz.getSuperclass() != null) {
interfaces.addAll(getAllInterfaces(clz.getSuperclass()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah wasn't worrying too much about performance since this is all heavily reflective and only happens once, but guess it's not so hard to use the shared set. Anyways I realized I forgot about superinterfaces, so just went with the apache implementation.

@trustin trustin added this to the 0.9.0.Final milestone Jan 28, 2016
@trustin trustin added the defect label Jan 28, 2016
trustin added a commit that referenced this pull request Jan 28, 2016
Check all interfaces, including ancestor interfaces, when analyzing t…
@trustin trustin merged commit bae4efa into line:master Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants