Skip to content

SPR-8335: fixed default-lazy-init processing when xsd validation is disabled #2071

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

Closed
wants to merge 1 commit into from

Conversation

MichelSchudel
Copy link
Contributor

The xml parser does not fill in defaults provided in the xsd when validation is disabled.

As a result, attributes like default-lazy-init will not receive the value "default" but an empty
string value. This also applies for other default attributes in the root or parent elements.

The BeanDefinitionParserDelegate did not take this into account. So, we should also check on an empty string value, which is semantically the same as the value "default".

Issues: SPR-8335

the xml parser does not fill in defaults provided in the xsd when validation is disabled. As a result, attributes like
default-lazy-init will not receive the value "default" but an empty
string value. The BeanDefinitionParserDelegate did not take this into
account. So, we should also check on an empty string value, which is
semantically the same as the value "default".

Issues: SPR-8335
@pivotal-issuemaster
Copy link

@MichelSchudel Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@MichelSchudel Thank you for signing the Contributor License Agreement!

@sdeleuze
Copy link
Contributor

sdeleuze commented Jan 8, 2019

I have merged a polished version of your commit, thanks.

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

Successfully merging this pull request may close these issues.

3 participants