flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-10234) Lambda usage in FutureUtils is ambigouos with Java 9
Date Mon, 03 Sep 2018 09:23:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-10234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

ASF GitHub Bot updated FLINK-10234:
-----------------------------------
    Labels: pull-request-available  (was: )

> Lambda usage in FutureUtils is ambigouos with Java 9
> ----------------------------------------------------
>
>                 Key: FLINK-10234
>                 URL: https://issues.apache.org/jira/browse/FLINK-10234
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Core
>    Affects Versions: 1.7.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.7.0
>
>
> In {{FutureUtils}} the following code doesn't compile with java 9:
> {code}
> ... = scheduledExecutor.schedule(
> 	() -> retryOperationWithDelay(resultFuture, operation, retries - 1, retryDelay,
> 	...,
> 	...,
> 	...);
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message