Github user ggevay commented on a diff in the pull request:
https://github.com/apache/flink/pull/2211#discussion_r78153259
--- Diff:
flink-core/src/main/java/org/apache/flink/util/InstantiationUtil.java ---
@@ -71,13 +139,18 @@ public ClassLoaderObjectInputStream(InputStream in,
ClassLoader classLoader) thr
// return primitive class
return cl;
} else {
- // throw ClassNotFoundException
- throw ex;
+ // search among the compiled
classes too
+ return Class.forName(name,
false, loaderForGeneratedClasses.get(name));
}
}
}
- return super.resolveClass(desc);
+ try {
+ return super.resolveClass(desc);
+ } catch (ClassNotFoundException ex) {
+ // It is possible the the passed class loader
is null but we still want to load generated classes.
--- End diff --
"the the"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---