You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way Enum introspection works via AnnotationIntrospection in 2.x is fragmented and results in multiple passes along related but unconnected pieces; first for primary names, then for default values, and then for aliases. Since information is mostly the same it would make sense to change handling to be at slightly higher level, combination logical pieces.
It would either make sense to combine everything into just one combo method, or, possible two:
Method that just discovers all accessors (in case of Enums, Fields), return as ordered List or array of AnnotatedFields
Method that given result of (1) will further determine names, aliases, and possible default value
One additional benefit from rewrite is that it could allow supporting mix-in override: in 2.x mix-ins do not work for Enums as far as I understand code (since it by-passes AnnotatedField and directly operates on basic JDK Field instances instead).
The text was updated successfully, but these errors were encountered:
The way Enum introspection works via
AnnotationIntrospection
in 2.x is fragmented and results in multiple passes along related but unconnected pieces; first for primary names, then for default values, and then for aliases. Since information is mostly the same it would make sense to change handling to be at slightly higher level, combination logical pieces.It would either make sense to combine everything into just one combo method, or, possible two:
Field
s), return as ordered List or array ofAnnotatedField
sOne additional benefit from rewrite is that it could allow supporting mix-in override: in 2.x mix-ins do not work for Enums as far as I understand code (since it by-passes
AnnotatedField
and directly operates on basic JDKField
instances instead).The text was updated successfully, but these errors were encountered: