|
From: Ken G. <kg...@sp...> - 2003-06-16 22:40:10
|
I was looking at the code to com.babeldoc.core.VariableProcessor. I have a little problem with it. Why is getContext() synchronized? No other method in VariableProcessor is synchronized. This means that you are trying to avoid having two threads attain a reference to the context at the same time. It makes no assurance on synchronizing accesses to the methods on the context object. I could understand synchronizing addToContext(name, object). Ken |