infinispan/infinispan — comment on commit 4254f8e15b60cff2ed7764e5f9de1f2e62a6ff69
File: core/src/main/java/org/infinispan/remoting/transport/jgroups/CommandAwareRpcDispatcher.java line 101
By normanmaurer:

Thats not safe as channel.addChannelListener(..) could see a not fully initialized instance. Better would be to have a static helper method that create the instance and after that add it via channel.addChannelListener(..). This may not be a big deal here but I noticed it when doing some review..