[jira] [Commented] (KAFKA-9738) Add Generics Type Parameters to forwarded() in MockProcessorContext

2024-07-11 Thread Matthias J. Sax (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-9738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17865145#comment-17865145
 ] 

Matthias J. Sax commented on KAFKA-9738:


Given that `Processor` is deprecated already, we should deprecate 
`MockProcessorContext`, too.

Let's maybe use this ticket. I'll write a quick KIP for it.

> Add Generics Type Parameters to forwarded() in MockProcessorContext 
> 
>
> Key: KAFKA-9738
> URL: https://issues.apache.org/jira/browse/KAFKA-9738
> Project: Kafka
>  Issue Type: Improvement
>  Components: streams
>Affects Versions: 2.5.0
>Reporter: Bruno Cadonna
>Priority: Minor
>
> The method {{forwarded()}} to capture the forwarded records in 
> {{MockProcessorContext}} does not have any type parameters although the 
> corresponding {{forward()}} does have them. To enable type checking at 
> compile time in tests, generics parameters shall be added to the 
> {{forwarded()}} method.



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


[jira] [Commented] (KAFKA-9738) Add Generics Type Parameters to forwarded() in MockProcessorContext

2024-07-11 Thread Bruno Cadonna (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-9738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17864948#comment-17864948
 ] 

Bruno Cadonna commented on KAFKA-9738:
--

The old `MockProcessorContext` is still not deprecated, technically, so there 
might be still some interest in this. However, the interest might be very 
minor. Let's close it as won't do. It can still be reopened if needed.  

> Add Generics Type Parameters to forwarded() in MockProcessorContext 
> 
>
> Key: KAFKA-9738
> URL: https://issues.apache.org/jira/browse/KAFKA-9738
> Project: Kafka
>  Issue Type: Improvement
>  Components: streams
>Affects Versions: 2.5.0
>Reporter: Bruno Cadonna
>Priority: Minor
>
> The method {{forwarded()}} to capture the forwarded records in 
> {{MockProcessorContext}} does not have any type parameters although the 
> corresponding {{forward()}} does have them. To enable type checking at 
> compile time in tests, generics parameters shall be added to the 
> {{forwarded()}} method.



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


[jira] [Commented] (KAFKA-9738) Add Generics Type Parameters to forwarded() in MockProcessorContext

2024-07-10 Thread Matthias J. Sax (Jira)


[ 
https://issues.apache.org/jira/browse/KAFKA-9738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17864883#comment-17864883
 ] 

Matthias J. Sax commented on KAFKA-9738:


[~cadonna] – I believe this is fixed with the new `api.MockProcessorContext`? 
Can we close this ticket?

> Add Generics Type Parameters to forwarded() in MockProcessorContext 
> 
>
> Key: KAFKA-9738
> URL: https://issues.apache.org/jira/browse/KAFKA-9738
> Project: Kafka
>  Issue Type: Improvement
>  Components: streams
>Affects Versions: 2.5.0
>Reporter: Bruno Cadonna
>Priority: Minor
>
> The method {{forwarded()}} to capture the forwarded records in 
> {{MockProcessorContext}} does not have any type parameters although the 
> corresponding {{forward()}} does have them. To enable type checking at 
> compile time in tests, generics parameters shall be added to the 
> {{forwarded()}} method.



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