Github user MattWhelan commented on the pull request:
https://github.com/apache/spark/pull/3233#issuecomment-71116000
Sorry, "cache" was vague. It's often called that, but what it really
refers to is the call to findLoadedClass(name) near the top of the loadClass
method in ClassLoader. That call looks up the name in this CL's cache. The
actual implementation is a native method in the JVM, not some sort of data
structure it ClassLoader itself.
Since you're calling findClass before findLoadedClass, you're going to
defineClass on the same class more than once, in some cases, which throws that
LinkageError
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]