Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cowtowncoder opened this issue Sep 29, 2019 · 1 comment
Closed

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

cowtowncoder opened this issue Sep 29, 2019 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

(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.

@cowtowncoder cowtowncoder added 2.10 and removed 2.10 labels Sep 29, 2019
@cowtowncoder
Copy link
Member Author

2 failures on TestEnumSerialization (and one in TestDefaultForObject) seem to indicate that somehow enum values in EnumSet gets mistakenly treated as a POJO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant