I am using SkyWalking javaagent to enhance DefaultAopProxyFactory which changes the class structures.

Since DefaultAopProxyFactory has no static serialization uid specified, the change of class structure changes the calculated Serialization UID.

When serialize/deserialize the enhanced DefaultAopProxyFactory instance, because of the Serialization UID inconsistence, java.io.InvalidClassException happens.

I believe that DefaultAopProxyFactory with static serialization UID could avoid similar problems.

FYI

https://github.com/apache/skywalking/issues/2768

https://github.com/spring-projects/spring-security-oauth/issues/1684

Comment From: snicoll

Sorry this got overlooked, and this has been implemented in the meantime.

Duplicate of #27784