Announcement Announcement Module
Collapse
No announcement yet.
MapFactoryBean and thread-safe maps Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MapFactoryBean and thread-safe maps

    We recently encountered the problem of get() in HashMap entering an infinite loop (mentioned http://lightbody.net/blog/2005/07/ha...an_infini.html here.

    This caused us to wonder about the maps generated through the MapFactoryBean, and if they could ever have a problem. I see that MFB generates LinkedHashMaps by default. Why can these safely be injected into Spring singletons? It would seem to have the same problem as any Java HashMap-type structure.
Working...
X