chennaji9 opened a new issue, #11290:
URL: https://github.com/apache/rocketmq/issues/11290

   ### Description
   
   The ordered-message producer example in `docs/en/Example_Orderly.md` does 
not compile when copied: the package declaration in the first code block is 
missing its semicolon:
   
   ```java
   package org.apache.rocketmq.example.order2
   
   import org.apache.rocketmq.client.producer.DefaultMQProducer;
   ...
   ```
   
   `package` is a statement (unlike `import`, which is a directive) and 
requires the terminating `;`. Copying the block into `Producer.java` yields a 
compile error on the very first line.
   
   ### Expected behavior
   
   The complete producer snippet in the page should compile as-is: `package 
org.apache.rocketmq.example.order2;`


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