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

Improve FactoryBasedEnumDeserializer to work better with XML module #4807

Closed
cowtowncoder opened this issue Nov 24, 2024 · 0 comments
Closed
Labels

Comments

@cowtowncoder
Copy link
Member

Describe your Issue

(note: this is to help solve FasterXML/jackson-dataformat-xml#682)

It looks like FactoryBasedEnumDeserializer does not have same work-around as basic EnumDeserializer has for Object valued input:

(line 287)

        // 29-Jun-2020, tatu: New! "Scalar from Object" (mostly for XML)
        if (p.isExpectedStartObjectToken()) {
            return _fromString(p, ctxt,
                    ctxt.extractScalarFromObject(p, this, _valueClass));
        }

But it should have, to support String-argument taking "DELEGATING" Creator.
Let's add handling.

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

No branches or pull requests

1 participant