You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/21 04:52:29 UTC

[GitHub] [pulsar] nodece commented on a diff in pull request #15198: [fix][test]Fix cannot resolve method addLast error

nodece commented on code in PR #15198:
URL: https://github.com/apache/pulsar/pull/15198#discussion_r854772584


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/PulsarChannelInitializer.java:
##########
@@ -144,7 +145,7 @@ protected void initChannel(SocketChannel ch) throws Exception {
         // auto-read.
         ch.pipeline().addLast("flowController", new FlowControlHandler());
         ServerCnx cnx = newServerCnx(pulsar, listenerName);
-        ch.pipeline().addLast("handler", cnx);
+        ch.pipeline().addLast("handler", (ChannelHandler) cnx);

Review Comment:
   <img width="1066" alt="image" src="https://user-images.githubusercontent.com/16235121/164374413-a5715d3d-a1ae-475c-b2f7-22f591a134b7.png">
   
   
   I have the same issue, this is my screenshot on IntelliJ IDEA 2022.1 (Ultimate Edition)
   
   



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

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