[kaffe] Another ClassLoader (protection domain) issue
    Mark Wielaard 
    mark at klomp.org
       
    Sun Nov 14 04:03:47 PST 2004
    
    
  
Hi,
When ClassLoader.defineClass() gets a null ProtectionDomain is should
use the default protection domain. This just moves the  clutch from the
other defineClass() method (that doesn't take a protection domain) into
the one that takes an explicit ProtectionDomain:
2004-11-13  Mark Wielaard  <mark at klomp.org>
        * libraries/javalib/java/lang/ClassLoader.java
        (defineClass(String,byte[],int,int)): Move
        defaultProtectionDomain initialization to...
        (defineClass(String,byte[],int,int,ProtectionDomain)): ...here.
Some of the Eclipse class loaders call defineClass() with a null
ProtectionDomain apparently and you can not store those in a HashTable.
Again, switching to the GNU Classpath ClassLoader implementation might
be a good idea.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClassLoader2.patch
Type: text/x-patch
Size: 1567 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20041114/49c2d585/attachment-0006.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20041114/49c2d585/attachment-0002.pgp 
    
    
More information about the kaffe
mailing list