mjsax commented on a change in pull request #9083:
URL: https://github.com/apache/kafka/pull/9083#discussion_r497709235



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorContextImpl.java
##########
@@ -217,12 +217,12 @@ public StateStore getStateStore(final String name) {
                     forward((ProcessorNode<K, V, ?, ?>) child, key, value);
                 }
             } else {
-                final ProcessorNode<K, V, ?, ?> child = 
currentNode().getChild(sendTo);
+                final ProcessorNode<?, ?, ?, ?> child = 
currentNode().getChild(sendTo);
                 if (child == null) {
                     throw new StreamsException("Unknown downstream node: " + 
sendTo
                         + " either does not exist or is not connected to this 
processor.");
                 }
-                forward(child, key, value);
+                forward((ProcessorNode<K, V, ?, ?>) child, key, value);

Review comment:
       @guozhangwang It's weird to remove the types above and add a cast here. 
Seems like a step backward with regard to type safety. Not sure if @vvcephei's 
changes would fix it?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to