Github user holdenk commented on the pull request:
https://github.com/apache/spark/pull/217#issuecomment-39628786
That code looks useful :) Just a heads up though its probably going to be a
bit ugly since:
1) I need the classes to not be in the Spark project its self (so I'll
probably create the java classes from strings)
2) I need both classes and jars (one of the loaders is specialized for just
.class files with the rewriting panda magic)
3) I need multiple classes with the same name name but different values for
testing
On Fri, Apr 4, 2014 at 7:27 PM, Patrick Wendell
<[email protected]>wrote:
> I don't know for sure, but ya I'd guess .class files might be an issue.
> @holdenk <https://github.com/holdenk> would it be possible to re-write
> the tests using this utility here
>
https://github.com/apache/spark/pull/326/files#diff-80212629295b483ab30a3436a653e97aR37
> ?
>
> Basically you can create a Jar with an arbitrary named class and then add
> that to the classloader.
>
> --
> Reply to this email directly or view it on
GitHub<https://github.com/apache/spark/pull/217#issuecomment-39626705>
> .
>
--
Cell : 425-233-8271
---
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.
---