Is GenericObjectPools borrowObject Method thread safe?
问题 In this question Is GenericObjectPool<T> from commons.apache.org thread safe? It is mentioned that its thread safe . Edited:But im having a situation in my multithreaded application that two threads are getting the same object from the pool at the same time.-This statement was wrong. I moved the borrowObject to synchronize block and it solved my issue. Has anyone faced this issue earlier? Here is my code: public static GenericObjectPool<IDocBuilderPool> documentBuilderPool = new