Closed ghost closed 8 years ago
The pull request does not fix it for me. I have a few more assertions failing, here are all of them:
line: 112 Expected :authority2 Actual :authority1
line: 114 Expected :identifier2 Actual :identifier1
line: 116 Expected :additionalId Actual :identifier2
line: 122 Expected :authority1 Actual :authority2
line: 124 Expected :identifier1 Actual :additionalId
What operating system and Java version are you using? The ordering of the elements can differ based on the underlying JVM.
Java(TM) SE Runtime Environment (build 1.8.0_72-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode
Since all other tests and the library itself work it might me worth rewriting the test.
Exactly. Build succeeds with jdk17, but fails on jdk18. Looking if we can have some consistent internal data handling (for instance SortedMaps instead of Maps).
You can also fix this issue by changing the maps in GSLayerEncoder21.java in lines 56 and 57 to LinkedHashmaps and reordering the expected strings in the test class. LinkedHashmaps iterate in the order the elements are inserted, so the test should always pass. I can make the changes in my pull request you'd like.
public Map<String,String> authorityURLList;
public Map<String,List<String>> identifierList;
Hi all,
Steps to reproduce:
Thanks for support.