urunni88 opened a new pull request, #30799:
URL: https://github.com/apache/camel/pull/30799

   # Description
   
   Fixes [CAMEL-26520](https://issues.apache.org/jira/browse/CAMEL-26520), a 
follow-up of CAMEL-26259 (#28950).
   
   Since CAMEL-26259, `receiveMessage` is no longer a value of the `operation` 
option: the producer does not support it, and the consumer receives the 
messages of the queue without reading the option. Two public members still 
referred to it:
   
   - `MNSOperations.RECEIVE_MESSAGE`, now only used for the producer's error 
message for `operation=receiveMessage`
   - `MNSEndpoint.resolveConsumerOperation()`, which nothing calls
   
   Both are now `@Deprecated(since = "4.24.0")`, with a javadoc saying why and 
that they will be removed in a future release.
   
   As the ticket says, the producer keeps its dedicated error message until the 
constant is removed (`MNSReceiveMessageOperationTest` still covers it), so 
`MNSProducer.process` and `MNSOperationsTest` suppress the deprecation warning, 
with a comment. The module compiles without deprecation warnings, and its 39 
tests pass.
   
   The 4.24 upgrade guide has an entry for the deprecation.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   https://issues.apache.org/jira/browse/CAMEL-26520
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] This PR was prepared with the help of Claude (Anthropic), credited 
with a `Co-authored-by` trailer in the commit.


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