After adding getText and getProperties in ActiveMQText.toString(), OpenWire
ActiveMQTextMessageTests fail
---------------------------------------------------------------------------------------------------------
Key: AMQ-1981
URL: https://issues.apache.org/activemq/browse/AMQ-1981
Project: ActiveMQ
Issue Type: Bug
Reporter: Dejan Bosanac
Assignee: Dejan Bosanac
Fix For: 5.3.0
The problem is that MarshallingSupport.readUTF8() method does not work well
when provided byte sequence does not contain UTF8 String. It tries to read size
from first two characters and throws heap size exception.
So this will not work:
ActiveMQTextMessage msg = new ActiveMQTextMessage();
msg.setContent(new ByteSequence("test".getBytes()));
msg.getText();
and this is used in tests to set content and marshalled properties of the
message.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.