Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20156

JavaDocs of WatermarkStrategy.withTimestampAssigner are wrong wrt Java 8

    XMLWordPrintableJSON

    Details

      Description

      According to the JavaDocs of WatermarkStrategy.withTimestampAssigner one can define a watermark strategy with the following code:

      WatermarkStrategy<CustomObject> wmStrategy = WatermarkStrategy
      	 .forMonotonousTimestamps()
      	 .withTimestampAssigner((event, timestamp) -> event.getTimestamp());
      

      However because of https://e.printstacktrace.blog/java-type-inference-generic-methods-chain-call/, this won't compile.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                trohrmann Till Rohrmann
                Reporter:
                trohrmann Till Rohrmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: