You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ray McDermott (Jira)" <ji...@apache.org> on 2024/07/05 13:43:00 UTC

[jira] [Created] (KAFKA-17091) Add @FunctionalInterface to Streams interfaces

Ray McDermott created KAFKA-17091:
-------------------------------------

             Summary: Add @FunctionalInterface to Streams interfaces
                 Key: KAFKA-17091
                 URL: https://issues.apache.org/jira/browse/KAFKA-17091
             Project: Kafka
          Issue Type: Improvement
          Components: streams
            Reporter: Ray McDermott
            Assignee: Ray McDermott


Clojure version 1.12 (currently in beta) has many updates to Java interop.

Unfortunately, it does not quite deliver what we need with respect to thinning down Kafka Streams interop.

We were specifically hoping that passing {{(fn [] ...)}} to SAM interfaces would just work and we would not need to {{reify}} the interface.

Sadly it only works for interfaces that have been explicitly annotated with {{@FunctionalInterface}}  - and the Kafka Streams DSL does not have those annotations.

Details here

https://ask.clojure.org/index.php/13908/expand-fi-adapting-to-sam-types-not-marked-as-fi



--
This message was sent by Atlassian Jira
(v8.20.10#820010)