chenwyi2 commented on issue #12032:
URL: https://github.com/apache/gravitino/issues/12032#issuecomment-5000187048
maybe we should change KerberosAwareIcebergCatalogProxy.java to the below:
`private IcebergCatalogWrapper createProxyWithoutConstructor() {
Enhancer enhancer = new Enhancer();
enhancer.setClassLoader(target.getClass().getClassLoader());
enhancer.setSuperclass(target.getClass());
enhancer.setCallbackType(MethodInterceptor.class);
enhancer.setUseFactory(true);
enhancer.setInterceptDuringConstruction(false);
Class<?> proxyClass = enhancer.createClass();
Enhancer.registerCallbacks(proxyClass, new Callback[] {this});
IcebergCatalogWrapper proxy = (IcebergCatalogWrapper)
OBJENESIS.newInstance(proxyClass);
((Factory) proxy).setCallback(0, this);
return proxy;
}`
--
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]