Announcement Announcement Module
Collapse
No announcement yet.
Consistentency problem in source assigining linkedhashmap Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Consistentency problem in source assigining linkedhashmap

    In AbstractAutowireCapableBeanFactory it's done like
    Code:
    		if (JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_14) {
    			resolved = LinkedHashMapCreator.createLinkedHashMap(mm.size());
    		}
    		else {
    			resolved = new HashMap(mm.size());
    		}
    In DefaultXmlBeanDefinitionParser it's done like
    Code:
    		if (JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_14) {
    			map = ManagedLinkedMapCreator.createManagedLinkedMap(list.size());
    			// ManagedLinkedMap = a tag subclass of java.util.LinkedHashMap
    		}
    		else {
    			map = new ManagedMap(list.size());  // a tag subclass of java.util.HashMap
    		}

  • #2
    What's the inconsistency? The first code you quote is what actually _resolves_ the maps from the managed map or managed linked maps set in the second sample...

    Comment

    Working...
    X