dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beiwei30 (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] beiwei30 commented on pull request #2929: Replace anonymous class with method reference
Date Mon, 10 Dec 2018 02:38:30 GMT
@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


Mime
View raw message