Not synchronized com.mysema.query.types.TemplateFactory cache #341
we can create infinite loop in HashMap, because HashMap cache is not synchronized. Instead default HashMap we should use ConcurrentHashMap.
We can try to reproduce this error by running app:
Important is that all strings have the same hashCode, so they will be stored in the same HashMap bucket. Infinite loop stack trace:
Tested on several versions of querydsl-code, and java versions 1.6.x
The text was updated successfully, but these errors were encountered: