framework.checkAdminPermission(this, AdminPermission.CLASS);
} catch (SecurityException e) {
throw new ClassNotFoundException(name, e);
}
}
BundleLoader loader = checkLoader();
if (loader == null)
throw new ClassNotFoundException(NLS.bind(Msg.BUNDLE_CNFE_NOT_RESOLVED, name, getBundleData().getLocation()));
try {
return (loader.loadClass(name));
} catch (ClassNotFoundException e) {
// this is to support backward compatibility in eclipse
// we always attempted to start a bundle even if the class was not found
if (!(e instanceof StatusException) && (bundledata.getStatus() & Constants.BUNDLE_LAZY_START) != 0 && !testStateChanging(Thread.currentThread()))
try {
// only start the bundle if this is a simple CNFE
loader.setLazyTrigger();
} catch (BundleException be) {
framework.adaptor.getFrameworkLog().log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, be.getMessage(), 0, be, null));
}
throw e;
}