On 2/1/13 8:11 AM, Mandy Chung wrote:
By code inspection, however, I concur that there is a timing race there that a logger can
be GC'ed where a logger exists where being queried and immediately being gc'ed after that.
I don't think Licensee's proposed 1-line fix is a completed fix though.
LogManager.java L 633-635
if (!manager.addLogger(result) && result.getHandlers().length == 0) {
// if logger already exists but handlers not set
final Logger l = manager.getLogger(name);
final Logger logger = result;