[
https://issues.apache.org/jira/browse/FLINK-20156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Till Rohrmann reassigned FLINK-20156:
-------------------------------------
Assignee: Till Rohrmann
> JavaDocs of WatermarkStrategy.withTimestampAssigner are wrong wrt Java 8
> ------------------------------------------------------------------------
>
> Key: FLINK-20156
> URL: https://issues.apache.org/jira/browse/FLINK-20156
> Project: Flink
> Issue Type: Improvement
> Components: API / DataStream, Documentation
> Affects Versions: 1.12.0, 1.11.2
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
> Priority: Major
> Labels: usability
> Fix For: 1.12.0, 1.11.3
>
>
> According to the JavaDocs of {{WatermarkStrategy.withTimestampAssigner}} one
> can define a watermark strategy with the following code:
> {code}
> WatermarkStrategy<CustomObject> wmStrategy = WatermarkStrategy
> .forMonotonousTimestamps()
> .withTimestampAssigner((event, timestamp) -> event.getTimestamp());
> {code}
> However because of
> https://e.printstacktrace.blog/java-type-inference-generic-methods-chain-call/,
> this won't compile.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)