Description
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.
Attachments
Issue Links
- links to