RockteMQ-AI commented on issue #776:
URL: 
https://github.com/apache/rocketmq-spring/issues/776#issuecomment-5364753920

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   This is a clear and well-documented bug. The `buildEnhancer()` method in 
`RocketMQMessageListenerBeanPostProcessor` correctly accumulates modifications 
through all registered `AnnotationEnhancer` beans into `newAttrs`, but then 
returns the original `attrs` map instead of `newAttrs`.
   
   **Root Cause:** A simple return-value bug — the composed lambda returns 
`attrs` (the unmodified original) instead of `newAttrs` (the accumulated 
modifications).
   
   **Impact:** Every registered `AnnotationEnhancer` bean is silently 
ineffective. Users who rely on custom annotation enhancement (e.g., dynamic 
topic/group resolution) get no effect without any error or warning.
   
   **Severity:** high
   
   The fix is a one-line change: return `newAttrs` instead of `attrs`.
   
   ---
   *Automated evaluation by RockteMQ-AI*
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to