by Steven Simpson <ss@[EMAIL PROTECTED]
>
May 11, 2008 at 09:42 AM
ZelluX wrote:
> im****t java.lang.reflect.*;
>
> Object proxy = Proxy.newProxyInstance(null, interfaces,
handler);
>
> But when i ran this Test program, it throws an exception
> Exception in thread "main" java.lang.IllegalArgumentException:
> interface MyInterface is not visible from class loader
> at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
> at Test.main(Test.java:9)
>
You specified null as the class loader. Perhaps try
ClassLoader.getSystemClassLoader()?
--
ss at comp dot lancs dot ac dot uk |