Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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