Skip to content

Fix JavaType.isEnumType() to support sub-classes #2480

@cowtowncoder

Description

@cowtowncoder

(note: follow up for #2457)

So, JavaType.isEnumType() will only detect direct Enum subclasses as being Enums.
It should allow transitive types (needed for sub-classing by extension within Enum declaration), but doing that will break 3 unit tests. Need to investigate why, work around: they all seem to be related to EnumSet which is tricky type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions