AliRana30 commented on PR #838:
URL: https://github.com/apache/wayang/pull/838#issuecomment-6443030171

   Thanks for the thorough review and security probes.
   
   - **Subclasses & Broad Types**: Removed `isAssignableFrom` matching and 
restricted `Number.class` (and broad types) from allowing custom subclasses. 
Only exact classes and nested member classes are accepted for custom element 
types.
   - **Package-Level Trust**: Removed package-prefix matching so unrelated 
classes in the same package are rejected.
   - **Fresh `WayangValue`**: Updated `WayangValue.write()` and `read()` to 
serialize and restore the payload type so fresh no-arg instances retain the 
expected type during Flink deserialization.
   - **Regression Tests**: Added tests covering `Number.class` custom subclass 
rejection without hook execution, rejection of unrelated classes in the same 
package, rejection of arbitrary payload subclasses, and fresh no-argument 
`WayangValue` deserialization.
   


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