Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4672

KIP-100 api changes break Java 8 lambda expressions in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.0
    • 0.10.2.0, 0.11.0.0
    • streams
    • None

    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

          Activity

            People

              xvrl Xavier Léauté
              xvrl Xavier Léauté
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: