Restored property source ordering (fixing regression from 4.0.x)

Issue: SPR-12198
This commit is contained in:
Juergen Hoeller
2014-09-18 23:48:35 +02:00
parent f4219ca06b
commit 90b93ffe3f
4 changed files with 25 additions and 5 deletions

View File

@@ -375,8 +375,7 @@ class ConfigurationClassParser {
propertySources.addLast(propertySource);
}
else {
String firstProcessed = this.propertySourceNames.iterator().next();
propertySources.addBefore(firstProcessed, propertySource);
propertySources.addFirst(propertySource);
}
}
this.propertySourceNames.add(name);