[Bug 43] New: size() should be synchronized in LoggerContext

http://bugzilla.qos.ch/show_bug.cgi?id=43 Summary: size() should be synchronized in LoggerContext Product: logback-classic Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P1 Component: Other AssignedTo: logback-dev@qos.ch ReportedBy: sdavids@gmx.de private synchronized void incSize() { size++; } int size() { return size; } The above is not Thread-safe. Correct: syncronized int size() { return size; } -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=43 ------- Comment #1 from sdavids@gmx.de 2007-02-04 18:06 ------- synchronized int size() { return size; } -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=43 noreply.ceki@qos.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from noreply.ceki@qos.ch 2007-02-27 21:14 ------- fixed in subversion -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
participants (1)
-
bugzilla-daemon@pixie.qos.ch