This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import koala.dynamicjava.tree.*;
import koala.dynamicjava.util.*;
import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
import java.security.PrivilegedActionException;
/**
* This class is responsible for loading bytecode classes
*
* @param i the object used to interpret the classes
*/
public TreeClassLoader(Interpreter i) {
interpreter = i;
}
} catch (ClassNotFoundException e) {
return interpreter.loadClass(name);
final String clsName = name;
try {
return (Class) AccessController.doPrivileged(
new PrivilegedExceptionAction() {
public Object run() throws ClassNotFoundException {
return interpreter.loadClass(clsName);
});
} catch (PrivilegedActionException pae) {
throw (ClassNotFoundException) pae.getException();