[
https://issues.apache.org/jira/browse/FLINK-9292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471892#comment-16471892
]
ASF GitHub Bot commented on FLINK-9292:
---------------------------------------
Github user StephanEwen commented on a diff in the pull request:
https://github.com/apache/flink/pull/5970#discussion_r187610790
--- Diff:
flink-java/src/test/java/org/apache/flink/api/java/sca/UdfAnalyzerTest.java ---
@@ -109,7 +112,7 @@ public String map(MyPojo value) throws Exception {
@Test
public void testForwardWithGenericTypePublicAttrAccess() {
compareAnalyzerResultWithAnnotationsSingleInput(MapFunction.class, Map4.class,
-
"org.apache.flink.api.java.sca.UdfAnalyzerTest$MyPojo", "String");
+ TypeInformation.of(new
TypeHint<GenericTypeInfo<MyPojo>>(){}), Types.STRING);
--- End diff --
Then the code needs to be `new GenericTypeInfo<>(MyPojo.class)`. Otherwise
it will try and determine why the Type Info for `GenericType` is and it just
happens to be a generic type ;-)
> Remove TypeInfoParser
> ---------------------
>
> Key: FLINK-9292
> URL: https://issues.apache.org/jira/browse/FLINK-9292
> Project: Flink
> Issue Type: Task
> Components: Core
> Reporter: Stephan Ewen
> Assignee: vinoyang
> Priority: Major
>
> The {{TypeInfoParser}} has been deprecated, in favor of the {{TypeHint}}.
> Because the TypeInfoParser is also not working correctly with respect to
> classloading, we should remove it. Users still find the class, try to use it,
> and run into problems.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)