clebertsuconic commented on a change in pull request #3448:
URL: https://github.com/apache/activemq-artemis/pull/3448#discussion_r574062357
##########
File path:
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/converter/CoreAmqpConverter.java
##########
@@ -425,7 +419,7 @@ private static Section convertBody(ServerJMSMessage
message, Map<Symbol, Object>
break;
}
} else if (message instanceof ServerJMSTextMessage) {
- String text = (((TextMessage) message).getText());
+ String text = (((ServerJMSTextMessage) message).getText());
Review comment:
I would then duplicate the whole JMS API internally for the conversion.
That is a BytesMessage, a TextMessage ...etc... etc... When all we need is
the Concrete Type. This is not supposed to used by any users other than the
conversion.
Notice this ServerJMSTextMessage is a class that only lives as part of the
AMQP implementation.
----------------------------------------------------------------
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:
[email protected]