michaelandrepearce commented on a change in pull request #3448:
URL: https://github.com/apache/activemq-artemis/pull/3448#discussion_r574064380
##########
File path:
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/converter/jms/ServerJMSMapMessage.java
##########
@@ -137,84 +123,75 @@ public void setObject(final String name, final Object
value) throws JMSException
}
TypedProperties.setObjectProperty(new SimpleString(name), val, map);
} catch (ActiveMQPropertyConversionException e) {
- throw new MessageFormatException(e.getMessage());
+ throw new RuntimeException(e.getMessage());
}
}
- @Override
- public boolean getBoolean(final String name) throws JMSException {
+ public boolean getBoolean(final String name) throws Exception {
try {
return map.getBooleanProperty(new SimpleString(name));
} catch (ActiveMQPropertyConversionException e) {
- throw new MessageFormatException(e.getMessage());
+ throw new RuntimeException(e.getMessage());
}
}
- @Override
- public byte getByte(final String name) throws JMSException {
+ public byte getByte(final String name) throws Exception {
try {
return map.getByteProperty(new SimpleString(name));
} catch (ActiveMQPropertyConversionException e) {
- throw new MessageFormatException(e.getMessage());
+ throw new RuntimeException(e.getMessage());
Review comment:
Should not happen doesnt mean it cannot...
----------------------------------------------------------------
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]