Croway commented on code in PR #18682:
URL: https://github.com/apache/camel/pull/18682#discussion_r2245146831
##########
core/camel-util/src/main/java/org/apache/camel/util/ClassLoadingAwareObjectInputStream.java:
##########
@@ -58,6 +60,14 @@ protected Class<?> resolveClass(ObjectStreamClass classDesc)
throws IOException,
return load(classDesc.getName(), cl, inLoader);
}
+ class NoopDynamicInvocationHandler implements InvocationHandler {
+
+ @Override
+ public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
+ return null;
+ }
+ }
Review Comment:
In this case we just a need a dummy Invocationhandler, we are only
interested in the Proxy class, not the proxy itself, anyway, I did refactor
this to avoid potential NPEs
--
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]