You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/01/18 18:00:00 UTC

[jira] [Comment Edited] (LOG4J2-3228) Nothing should implement Serializable in Log4j 3

    [ https://issues.apache.org/jira/browse/LOG4J2-3228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17478087#comment-17478087 ] 

Ralph Goers edited comment on LOG4J2-3228 at 1/18/22, 5:59 PM:
---------------------------------------------------------------

We should remove Serializable from anywhere it won't break compatibility. I can't imagine why anyone would be expecting that interface unless they are performing serialization, which we want to prevent.

For example, if a user has implement a custom Message that extends Serializable. The fact that we no longer extend Serializable shouldn't cause a problem so long as there is no code expecting it.


was (Author: ralph.goers@dslextreme.com):
We should remove Serializable from anywhere it won't break compatibility. I can't imagine why anyone would be expecting that interface unless they are performing serialization, which we want to prevent.

> Nothing should implement Serializable in Log4j 3
> ------------------------------------------------
>
>                 Key: LOG4J2-3228
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3228
>             Project: Log4j 2
>          Issue Type: Story
>            Reporter: Gary D. Gregory
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Like Effective Java #85.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)