[ https://issues.apache.org/jira/browse/FLINK-20156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till Rohrmann closed FLINK-20156. --------------------------------- Resolution: Fixed Fixed via 1.12.0: 432de2b4d35e41b6e0250cfde5dfd15bb119ccc4 1.11.3: 76564b719167dbe1ac29899dcaaf873ebbce93dd > 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: Trivial > Labels: pull-request-available, 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)