Visitar URL original
fix: ActiveMQObjectMessage/ActiveMQMapMessage doGetBody() deserializes message body twice by gt2001atgmail · Pull Request #2561 · apache/activemq · GitHub
Skip to content

fix: ActiveMQObjectMessage/ActiveMQMapMessage doGetBody() deserializes message body twice - #2561

Open
gt2001atgmail wants to merge 1 commit into
apache:mainfrom
gt2001atgmail:fix/2516-object-map-message-double-deserialize
Open

gt2001atgmail wants to merge 1 commit into
apache:mainfrom
gt2001atgmail:fix/2516-object-map-message-double-deserialize

Conversation

@gt2001atgmail

Copy link
Copy Markdown

doGetBody() in both classes re-deserializes the content directly instead of reusing the cache getObject()/getContentMap() already populate, so getBody() ends up deserializing twice. Fixed both to delegate to the cached getter, same as ActiveMQTextMessage already does. Added a test per class to catch the regression.

See: #2516

…s message body twice

doGetBody() in both classes re-deserializes the content directly instead of reusing the cache getObject()/getContentMap() already populate, so getBody() ends up deserializing twice. Fixed both to delegate to the cached getter, same as ActiveMQTextMessage already does. Added a test per class to catch the regression.

See: apache#2516
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant