ppkarwasz commented on PR #4271:
URL: https://github.com/apache/logging-log4j2/pull/4271#issuecomment-5917742378

   Hi @ramanathan1504,
   
   Yes, the read path **intentionally** throws if the filter rejects a class. I 
want our deserialization code to be as transparent as possible:
   
   - If the stream is corrupted, truncated or contains classes that should be 
there, the method throws as if was read from the **outer** stream.
   - The only case, when we degrade to `SimpleMessage` is when that particular 
`Message` class is not available on the receiving system.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to