Skip to content

Commit

Permalink
Polish apache#3251 : @service supports the hierarchical interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyblitz committed Jan 30, 2019
1 parent dc0bf44 commit debeb88
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -315,8 +315,9 @@ private Class<?> resolveServiceInterfaceClass(Class<?> annotatedServiceBeanClass
}

if (interfaceClass == null) {

Class<?>[] allInterfaces = annotatedServiceBeanClass.getInterfaces();
// Find all interfaces from the annotated class
// To resolve an issue : https://github.com/apache/incubator-dubbo/issues/3251
Class<?>[] allInterfaces = ClassUtils.getAllInterfacesForClass(annotatedServiceBeanClass);

if (allInterfaces.length > 0) {
interfaceClass = allInterfaces[0];
Expand Down

0 comments on commit debeb88

Please sign in to comment.