Skip to content

Field and message with same name generate invalid code #800

Open
@swankjesse

Description

@swankjesse

If we have a message that’s unwisely named not-to-pattern, say, taco and a field of that type with the same name, optional taco taco = 1 then the generated code is malformed because Javac cannot differentiate between the field and class name.

Solutions for fixing this are awkward. Do we allocate a different field name? Or always fully-qualify the class?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions