You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (Jira)" <ji...@apache.org> on 2025/05/02 17:58:00 UTC

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

     [ https://issues.apache.org/jira/browse/KAFKA-17091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias J. Sax updated KAFKA-17091:
------------------------------------
    Labels:   (was: need-kip)

> 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
>            Priority: Minor
>
> 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)