You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "chennaji9 (via GitHub)" <gi...@apache.org> on 2026/09/30 10:41:06 UTC
[I] [Doc] Example_Orderly.md producer snippet misses the package declaration semicolon and does not compile [rocketmq]
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org