7

Injecting a dynamic proxy class with Guice on Android

view full story
linux-howto

http://stackoverflow.com – I have a dynamic proxy class that simply does nothing for invocations, and I want to bind an instance of my proxy class in my Android application. At runtime Android barfs and I see all these memory dumps in the log. The app starts up, tries to bind my proxy, then immediately exits. I'm not sure what the problem is as the logs aren't helpful. Here's my proxy: public class Zen implements InvocationHandler { public static <C, T extends Class<C>> C empty(T clazz) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); return (C) Proxy.newProxyInstance (HowTos)