Question about MessageHeaders.REPLY_CHANNEL.endsWith(headerName) usage in MessageHeaderAccessor#verifyType #34881
Labels
in: messaging
Issues in messaging modules (jms, messaging)
status: superseded
An issue that has been superseded by another
Hi Spring team,
While reading the source code of org.springframework.messaging.support.MessageHeaderAccessor, I noticed something that seems potentially unintended in the verifyType method:
My question is about the use of MessageHeaders.REPLY_CHANNEL.endsWith(headerName) — is this intended to be endsWith, or should it be equals, similar to how ERROR_CHANNEL is compared? Using endsWith might lead to false positives when the header name is a suffix of "replyChannel".
Could you please clarify if this is intentional or if it might be a bug?
Thanks for your great work!
The text was updated successfully, but these errors were encountered: