Why is the formatMessage() method in java.util.logging.Formatter synchronized?
In the abstract JDK class Formatter, which is used to format debug logs, the formatMessage method is declared as synchronized. However, I haven't been able to determine why that is the case. Obviously, one can write overriding versions that are not thread safe, but I'm wondering why the default implementation is not thread safe. [T]he formatMessage method is declared as synchronized.However, I haven't been able to determine why that is the case. An early version of java.util.logging.Formatter tried to cache the result of resource bundle get string calls to avoid construction of java.util