#11290·rocketmq

[Doc] Example_Orderly.md producer snippet misses the package declaration semicolon and does not compile

Author: chennaji9Created Sep 30, 2026Updated Sep 30, 2026

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;