Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 42a525d

Browse files
committedJan 15, 2025··
ARTEMIS-5099 fix impossible cast in AMQPLargeMessage
I believe this was likely a copy-and-paste error involving o.a.a.a.c.p.i.j.LargeServerMessageImpl#referenceOriginalMessage.
1 parent 611b925 commit 42a525d

File tree

1 file changed

+1
-1
lines changed
  • artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker

1 file changed

+1
-1
lines changed
 

‎artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPLargeMessage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public void referenceOriginalMessage(final Message original, final SimpleString
660660

661661
super.referenceOriginalMessage(original, originalQueue);
662662

663-
if (original instanceof LargeServerMessageImpl) {
663+
if (original instanceof AMQPLargeMessage) {
664664
this.largeBody.referenceOriginalMessage(((AMQPLargeMessage) original).largeBody);
665665
}
666666
}

0 commit comments

Comments
 (0)
Please sign in to comment.