Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChannelInboundMessageHandlerAdapter should check if message is supported before cast it #678

Closed
normanmaurer opened this issue Oct 24, 2012 · 0 comments
Assignees
Milestone

Comments

@normanmaurer
Copy link
Member

We should do the same in ChannelInboundMessageHandlerAdapter as we do in MessageToMessageDecoder and check if the message can be handled by the handler before cast it. Otherwise its likely that you will get ClassCastExceptions if you write more then one message type (that not share the same super type) via a Channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant