Skip to content

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

Description

@chennaji9

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;

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions