Jens-G opened a new pull request, #3349:
URL: https://github.com/apache/thrift/pull/3349

   Client: py
   Patch: Jens Geyer
   Generated-by: Opencode big-pickle
   
   This test verifies that immutable structs (including exceptions, which are 
immutable by default since Thrift 0.14.0) can be properly deserialized without 
triggering the __setattr__ TypeError.
   
   The bug manifests when:
   1. A struct class is marked immutable (has __setattr__ that raises TypeError)
   2. Thrift's deserialization tries to set attributes via setattr instead of 
using the kwargs constructor
   
   Test coverage:
   - Immutable exception creation and hashability
   - Immutable exception blocks modification/deletion
   - Round-trip serialization/deserialization with TBinaryProtocol
   - Round-trip serialization/deserialization with TCompactProtocol
   - Accelerated protocol tests (C extension) when available
   
   Related: THRIFT-4002, THRIFT-5715
   


-- 
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