You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2017/05/11 19:12:04 UTC

[jira] [Closed] (FLINK-6553) Calls to getSideOutput() result in warnings regarding unchecked assignments

     [ https://issues.apache.org/jira/browse/FLINK-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler closed FLINK-6553.
-----------------------------------
    Resolution: Not A Problem

Oh boy, i just forgot the generics on the original DataStream...

> Calls to getSideOutput() result in warnings regarding unchecked assignments
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-6553
>                 URL: https://issues.apache.org/jira/browse/FLINK-6553
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming
>            Reporter: Chesnay Schepler
>
> Consider the following code:
> {code}
> operator = ...
> operator.getSideOutput(tag<X>).map(MapFunction<X,X>...)
> {code}
> When writing this you will get an unchecked assignment warning. You also can't let the IDE auto-generate the signature of the MapFunction, it will be typed to objects.
> It is also odd that the following actually compiles, but that may be a java issue:
> {code}
> operator.<String>getSideOutput(new OutputTag<Integer>(){})
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)