Skip to content

Duplicate field names in @DataEnum specification interfaces #11

@togi

Description

@togi

Currently the following is allowed by the annotation processor:

@DataEnum
interface Text_dataenum {
    dataenum_case Foo(int bar):
    dataenum_case Foo(long bar);
}

However this will cause two inner classes to be generated with the same name, so the resulting class does not compile.

The annotation processor should detect duplicate case names and abort compilation with an error explaining the problem.

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