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:
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;
Description
The ordered-message producer example in
docs/en/Example_Orderly.mddoes not compile when copied: the package declaration in the first code block is missing its semicolon:packageis a statement (unlikeimport, which is a directive) and requires the terminating;. Copying the block intoProducer.javayields 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;