eclipse-ee4j / eclipse-ee4j/jersey
Support conversin of enums with JAXB's @XmlEnum
Open
Component: core
Priority: Major
Type: Improvement
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
The string to enum converter relies on the enum valueOf method. This does not play well with enums created by xjc or annotated with @XmlEnum. This improvement should detect that annotation and use the fromValue method rather than the valueOf method.
#### Affected Versions
[2.7]
Contributor guide
Research direction
Locate Jersey's string-to-enum converter and inspect how it currently invokes valueOf. Check the JAXB @XmlEnum and generated fromValue behavior, then add coverage for annotated or xjc-generated enums and verify conversion uses fromValue while ordinary enums retain their existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100