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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.2.0
    • Fix Version/s: 0.10.2.0, 0.11.0.0
    • Component/s: streams
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: