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

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: 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

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

                Dates

                • Created:
                  Updated:
                  Resolved: