Graeme Rocher opened SPR-12471 and commented
Because of this code:
final Properties result = new Properties();
process(new MatchCallback() {
@Override
public void process(Properties properties, Map<String, Object> map) {
result.putAll(properties);
}
});
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