flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljoscha <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-1799][scala] Fix handling of generic ar...
Date Mon, 20 Apr 2015 14:22:43 GMT
Github user aljoscha commented on a diff in the pull request:

    --- Diff: flink-java/src/main/java/org/apache/flink/api/java/typeutils/ObjectArrayTypeInfo.java
    @@ -143,6 +143,18 @@ else if (type instanceof Class<?> && ((Class<?>)
     		throw new InvalidTypesException("The given type is not a valid object array.");
    +	/**
    +	 * Creates a new {@link org.apache.flink.api.java.typeutils.ObjectArrayTypeInfo} from
    +	 * {@link TypeInformation} for the component type.
    +	 *
    +	 * <p>
    +	 * This must be used in cases where the complete type of the array is not available
as a
    +	 * {@link java.lang.reflect.Type} or {@link java.lang.Class}.
    +	 */
    +	public static <T, C> ObjectArrayTypeInfo<T, C> getInfoFor(TypeInformation<C>
componentInfo) {
    +		return new ObjectArrayTypeInfo<T, C>(Object[].class, componentInfo.getTypeClass(),
    --- End diff --
    That's right, I didn't think of that. Will change.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message