TreeMap sorts according to the natural order of the elements (or using a comparator). It doesn't preserve order. i.e. If you put Alice, Charlie and Bob into a LinkedHashMap in that order you get Alice, Charlie and Bob out. If you put them into a TreeMap you get Alice, Bob, Charlie
-----Original Message----- From: scSynergy [mailto:[email protected]] Sent: Thursday, January 19, 2017 9:40 AM To: [email protected] Subject: Re: bug report One other possibility, though far from perfect, is to have shiroFilter.setFilterChainDefinitionMap(definitionsMap) only accept LinkedHashMap or TreeMap as parameters instead of accepting just any Map. I think those are the only Map implementations in standard Java SE which retain order. -- View this message in context: http://shiro-user.582556.n2.nabble.com/bug-report-tp7581461p7581464.html Sent from the Shiro User mailing list archive at Nabble.com.
