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 09:09 Go to next message
Asaf is currently offline Asaf
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 09:25 Go to previous message
Asaf is currently offline Asaf
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: Sat Aug 23 11:23:00 EDT 2014

Powered by FUDForum. Page generated in 0.10774 seconds