I find that surprising to me as well. I would have thought that would generate 
a compiler error.

Ralph


On Sep 28, 2014, at 8:27 AM, Matt Sicker <[email protected]> wrote:

> http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html
> 
> Is it ok to not have the exact exception signature then?
> 
> ---------- Forwarded message ----------
> From: <[email protected]>
> Date: 27 September 2014 07:31
> Subject: git commit: The declared exception ClassNotFoundException is not 
> actually thrown by the private method readObject(ObjectInputStream) from type 
> MessageFormatMessage.
> To: [email protected]
> 
> 
> Repository: logging-log4j2
> Updated Branches:
>   refs/heads/master 12715841a -> 95132eb37
> 
> 
> The declared exception ClassNotFoundException is not actually thrown by
> the private method readObject(ObjectInputStream) from type
> MessageFormatMessage.
> 
> Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
> Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/95132eb3
> Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/95132eb3
> Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/95132eb3
> 
> Branch: refs/heads/master
> Commit: 95132eb371e0cf6ed422ee9155ac4a64b2bfdcc5
> Parents: 1271584
> Author: Gary Gregory <[email protected]>
> Authored: Sat Sep 27 08:31:08 2014 -0400
> Committer: Gary Gregory <[email protected]>
> Committed: Sat Sep 27 08:31:08 2014 -0400
> 
> ----------------------------------------------------------------------
>  .../org/apache/logging/log4j/message/MessageFormatMessage.java     | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> ----------------------------------------------------------------------
> 
> 
> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/95132eb3/log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java
> ----------------------------------------------------------------------
> diff --git 
> a/log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java
>  
> b/log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java
> index 45a6b31..705aed9 100644
> --- 
> a/log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java
> +++ 
> b/log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java
> @@ -144,7 +144,7 @@ public class MessageFormatMessage implements Message {
>          }
>      }
> 
> -    private void readObject(final ObjectInputStream in) throws IOException, 
> ClassNotFoundException {
> +    private void readObject(final ObjectInputStream in) throws IOException {
>          parameters = null;
>          throwable = null;
>          formattedMessage = in.readUTF();
> 
> 
> 
> 
> -- 
> Matt Sicker <[email protected]>

Reply via email to