classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.util.ResourceBundle bug?


From: Mark Wielaard
Subject: Re: java.util.ResourceBundle bug?
Date: Sat, 3 Nov 2001 16:36:37 +0100
User-agent: Mutt/1.3.23i

Hi,

On Sat, Nov 03, 2001 at 04:28:14PM +0100, Mark Wielaard wrote:
> 
>   Class clazz = (Class) AccessController.doPrivileged
>   (
>     new PrivilegedAction()
>     {
>       Class[] types = {ClassLoader.class, String.class,
>                        byte[].class, int.class, int.class,
>                        /* ProtectionDomain.class */ };
>       Method m = loader.getDeclaredMethod("defineClass", types);

That should actually read:
        Method m = loader.getClass().getDeclaredMethod("defineClass", types);

>       Object[] args = {loader, qualName, bytecode, new Integer(0),
>                        new Integer(bytecode.length),
>                        /* Object.class.getProtectionDomain() */ };
>       return m.invoke(loader, args);
>     };
>   }
> 
> Again not actually tested or compiled. (Mostly just copy/paste from the
> current Proxy.java code.)

Cheers,

Mark
-- 
Stuff to read:
    <http://www.toad.com/gnu/whatswrong.html>
  What's Wrong with Copy Protection, by John Gilmore



reply via email to

[Prev in Thread] Current Thread [Next in Thread]