提交 16dad15f 编写于 作者: A Aljoscha Krettek

Change ObjectArrayTypeInfo.getInfoFor to use componentInfo.isTupleType()

This is necessary because the previous test didn't work for Scala tuples.
上级 785f2c4f
......@@ -116,7 +116,7 @@ public class ObjectArrayTypeInfo<T, C> extends TypeInformation<T> {
return new ObjectArrayTypeInfo<T, C>(type, genericArray.getGenericComponentType(), componentInfo);
}
// for tuples without generics (e.g. generated by the TypeInformation parser)
else if (type instanceof Class<?> && ((Class<?>) type).isArray() && Tuple.class.isAssignableFrom(((Class<?>) type).getComponentType())
else if (type instanceof Class<?> && ((Class<?>) type).isArray() && componentInfo.isTupleType()
&& type != Tuple.class) {
return new ObjectArrayTypeInfo<T, C>(type, ((Class<?>) type).getComponentType(), componentInfo);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册