Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8033 JDK 9 support
  3. FLINK-10234

Lambda usage in FutureUtils is ambigouos with Java 9

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.0
    • None

    Description

      In FutureUtils the following code doesn't compile with java 9:

      ... = scheduledExecutor.schedule(
      	() -> retryOperationWithDelay(resultFuture, operation, retries - 1, retryDelay,
      	...,
      	...,
      	...);
      

      The reason is that the compiler cannot determine whether the lambda should be a Runnable or a Callable<V>, resulting in incompatible bounds for the return type.

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: