[
https://issues.apache.org/jira/browse/KAFKA-4672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15833168#comment-15833168
]
ASF GitHub Bot commented on KAFKA-4672:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/kafka/pull/2402
> KIP-100 api changes break Java 8 lambda expressions in some cases
> ------------------------------------------------------------------
>
> Key: KAFKA-4672
> URL: https://issues.apache.org/jira/browse/KAFKA-4672
> Project: Kafka
> Issue Type: Bug
> Components: streams
> Affects Versions: 0.10.2.0
> Reporter: Xavier Léauté
> Assignee: Xavier Léauté
> Fix For: 0.10.2.0, 0.10.3.0
>
>
> Variance changes introduced in KIP-100 cause compilation failures with lambda
> expression in Java 8.
> To my knowledge this only affects the following method
> {{KStreams.transform(TransformerSupplier<...>, String...)}}
> prior to the changes it was possible to write
> {{streams.transform(MyTransformer::new)}}
> where {{MyTransformer}} extends {{Transformer}}.
> After the changes the Java compiler is unable to infer correct return types
> for the lambda expression.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)