-
Notifications
You must be signed in to change notification settings - Fork 975
Closed
Description
The tests fail in Java 8 and it seems to be because Java 8 has a different Map
ordering
In Parser.java, if I change the following code:
private AbstractConfigObject parseObject(boolean hadOpenCurly) {
// invoked just after the OPEN_CURLY (or START, if !hadOpenCurly)
Map<String, AbstractConfigValue> values = new HashMap<String, AbstractConfigValue>();
To this:
private AbstractConfigObject parseObject(boolean hadOpenCurly) {
// invoked just after the OPEN_CURLY (or START, if !hadOpenCurly)
Map<String, AbstractConfigValue> values = new java.util.LinkedHashMap<String, AbstractConfigValue>();
Then the tests fail in Java 7. This shouldn't happen
You can notice when when printing resolveStack
in the ResolveContext
constructor that a different order used based upon the order of the above Map