Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.3.0
-
None
-
Patch Available
Description
Checking the size of a text message only considers the body of a message, not the properties. I think this relates to a typo in the method:
public int getSize() { if (size == 0 && content == null && text != null) { size = getMinimumMessageSize(); if (marshalledProperties != null) { size += marshalledProperties.getLength(); } size = text.length() * 2; } return super.getSize(); }
This should perhaps be size += text.length() * 2?