Till Rohrmann created FLINK-20156:
-------------------------------------

             Summary: 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.11.2, 1.12.0
            Reporter: Till Rohrmann
             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)

Reply via email to