garydgregory commented on PR #430:
URL: 
https://github.com/apache/commons-beanutils/pull/430#issuecomment-5108503810

   How about 
https://docs.oracle.com/javase/8/docs/platform/serialization/spec/class.html#4100
 and:
   ```java
   ObjectInputStream in = new ObjectInputStream(fileStream) {
       @Override
       protected ObjectStreamClass readClassDescriptor() throws IOException, 
ClassNotFoundException {
           ObjectStreamClass desc = super.readClassDescriptor();
           if (desc.getName().equals(MyClass.class.getName())) {
               return ObjectStreamClass.lookup(MyClass.class);
           }
           return desc;
       }
   };
   ```
   ?


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