[slf4j-dev] [Bug 261] JDK14: Loggers are not serializable

bugzilla-daemon at qos.ch bugzilla-daemon at qos.ch
Tue Jun 12 14:55:32 CEST 2012


http://bugzilla.slf4j.org/show_bug.cgi?id=261

--- Comment #6 from Thorbjørn Ravn Andersen <thorbjoern at gmail.com> 2012-06-12 14:55:32 CEST ---
(In reply to comment #5)
> In JDK14LoggerAdapter, changing the logger field
> from 
>   final java.util.logging.Logger logger;
> to 
>   transient final java.util.logging.Logger logger;
> 
> seems to fix the problem. See also [1].

I agree.  I did the same in
https://github.com/ravn/slf4j/commit/28db3fc535eacde9c5f461710d28d6fc851d4ac4
and that has run in production for months.

Why is the logger final?

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list