Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox class loader creates invalid protectionDomain
Equinox class loader creates invalid protectionDomain [message #111659] Tue, 10 June 2008 13:09 Go to next message
Asaf is currently offline AsafFriend
Messages: 36
Registered: July 2009
Member
When running my OSGi bundle under Equinox, it is apparent that classes
loaded by the Equinox class loader, don't have a handle to a
ProtectionDomain instance:
Class c = Class.forName("aa.bb.cc.MyClass").getClass();
Object pd = c.getProtectionDomain();

if(pd==null)
System.out.prinelnt("protection domain is null!!!");


I assume its problematic since class loaders are expected to provide with a
ProtectionDomain handle for loaded classes (since jre 1.4).

Please let me know if its a bug or not...
Re: Equinox class loader creates invalid protectionDomain [message #111668 is a reply to message #111659] Tue, 10 June 2008 13:25 Go to previous message
Asaf is currently offline AsafFriend
Messages: 36
Registered: July 2009
Member
A small correction:

When running my OSGi bundle under Equinox, it is apparent that classes
loaded by the Equinox class loader, don't have a handle to a
ProtectionDomain instance:
Class c = Class.forName("aa.bb.cc.MyClass").getClass();
ProtectionDomain pd = c.getProtectionDomain();

if(pd.getClassLoader()==null)
System.out.prinelnt("protection domain class loader is null!!!");


I assume its problematic since class loaders are expected to provide with a
ProtectionDomain handle for loaded classes (since jre 1.4).

Please let me know if its a bug or not...
Previous Topic:Framework and Bundle level security policy
Next Topic:create product from equinox bundle
Goto Forum:
  


Current Time: Fri Dec 19 09:33:26 GMT 2014

Powered by FUDForum. Page generated in 0.33144 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software