if ((state & (STARTING | ACTIVE | STOPPING)) == 0) { Debug.println("Bundle.loadClass(" + name + ") called when state != STARTING | ACTIVE | STOPPING: " + this);
if ((state & (STARTING | ACTIVE | STOPPING | RESOLVED)) == 0) { Debug.println("Bundle.loadClass(" + name + ") called when state != STARTING | ACTIVE | STOPPING | RESOLVED: " + this);
	protected Class loadClass(String name, boolean checkPermission) throws ClassNotFoundException {		if (checkPermission) {			framework.checkAdminPermission();			checkValid();		}		// check to see if the bundle is resolved		if (!isResolved()) {			framework.packageAdmin.resolveBundles();			if (!isResolved()) {				throw new ClassNotFoundException(Msg.formatter.getString("BUNDLE_CNFE_NOT_RESOLVED", getLocation(), name)); //$NON-NLS-1$			}		}		if (Debug.DEBUG && Debug.DEBUG_GENERAL) {			if ((state & (STARTING | ACTIVE | STOPPING)) == 0) {				Debug.println("Bundle.loadClass(" + name + ") called when state != STARTING | ACTIVE | STOPPING: " + this);				Debug.printStackTrace(new Exception("Stack trace"));			}		}		getBundleLoader();		if (loader == null) {			if (Debug.DEBUG && Debug.DEBUG_GENERAL) {				Debug.println("Bundle.loadClass(" + name + ") called when loader == null: " + this);				Debug.printStackTrace(new Exception("Stack trace"));			}			throw new ClassNotFoundException(name);		}		return (loader.loadClass(name));	}