yuqi1129 commented on code in PR #12015:
URL: https://github.com/apache/gravitino/pull/12015#discussion_r3579855314
##########
core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java:
##########
@@ -178,6 +178,14 @@ protected Class<?> loadClass(String name, boolean resolve)
throws ClassNotFoundE
}
private Class<?> doLoadClass(String name, boolean resolve) throws
Exception {
+ if (!name.contains(".")) {
+ try {
+ return getRootClassLoader().loadClass("java.lang." + name);
Review Comment:
I recommend that you come up with a thorough resolution to fix this problem.
The fix only works for classes that are in the package `java.lang`. What if the
class is in the package `java.utils` or another?
--
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]