-
Notifications
You must be signed in to change notification settings - Fork 38.5k
YamlPropertiesFactoryBean doesn't preserve ordering of YAML documents [SPR-12471] #17077
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
Comments
Juergen Hoeller commented Actually, don't we have With Juergen |
Graeme Rocher commented I guess this is more of a Spring Boot issue then? Since Spring Boot uses YamlPropertiesFactoryBean by default (which doesn't seem sensible given this issue) |
Stéphane Nicoll commented I guess the underlying issue is |
Juergen Hoeller commented Indeed, it looks like Boot should be using Juergen |
Stéphane Nicoll commented Alright, let me see what I can do in Boot. spring-projects/spring-boot#2022 |
Graeme Rocher opened SPR-12471 and commented
Because of this code:
Ordering in YAML documents is broken since a Properties object doesn't retain ordering. This needs to be done with a LInkedHashMap instead and in fact if you look at the map passed into the
process
method it is a LinkedHashMap.Affects: 4.1.2
Reference URL: apache/grails-core@d9670e1
The text was updated successfully, but these errors were encountered: