You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "beiwei30 (GitHub)" <gi...@apache.org> on 2018/12/10 02:38:30 UTC
[GitHub] [incubator-dubbo] beiwei30 commented on pull request #2929:
Replace anonymous class with method reference
@igor-suhorukov, this change leads to CI failure. It looks like lambda lost generic info (actualTypeArguments).
pls. check org.springframework.core.SerializableTypeWrapper#forGenericInterfaces
```java
public static Type[] forGenericInterfaces(final Class<?> type) {
Type[] result = new Type[type.getGenericInterfaces().length];
for (int i = 0; i < result.length; i++) {
final int index = i;
result[i] = forTypeProvider(new SimpleTypeProvider() {
@Override
public Type getType() {
return type.getGenericInterfaces()[index];
}
});
}
return result;
}
```
[ Full content available at: https://github.com/apache/incubator-dubbo/pull/2929 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org