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.

View | Details | Raw Unified | Return to bug 19133
Collapse All | Expand All

(-)TreeClassLoader.java (-1 / +15 lines)
Lines 36-41 Link Here
36
import koala.dynamicjava.tree.*;
36
import koala.dynamicjava.tree.*;
37
import koala.dynamicjava.util.*;
37
import koala.dynamicjava.util.*;
38
38
39
import java.security.AccessController;
40
import java.security.PrivilegedExceptionAction;
41
import java.security.PrivilegedActionException;
42
39
/**
43
/**
40
 * This class is responsible for loading bytecode classes
44
 * This class is responsible for loading bytecode classes
41
 *
45
 *
Lines 70-76 Link Here
70
     * @param i the object used to interpret the classes
74
     * @param i the object used to interpret the classes
71
     */
75
     */
72
    public TreeClassLoader(Interpreter i) {
76
    public TreeClassLoader(Interpreter i) {
73
        interpreter   = i;
77
        interpreter   = i;
74
    }
78
    }
75
79
76
    /**
80
    /**
Lines 154-159 Link Here
154
	} catch (ClassNotFoundException e) {
168
	} catch (ClassNotFoundException e) {
155
	}
169
	}
156
170
157
	return interpreter.loadClass(name);
171
        final String clsName = name;
172
        try {
173
            return (Class) AccessController.doPrivileged(
174
                new PrivilegedExceptionAction() {
175
                    public Object run() throws ClassNotFoundException {
176
                        return interpreter.loadClass(clsName);
177
                    }
178
            });
179
        } catch (PrivilegedActionException pae) {
180
            throw (ClassNotFoundException) pae.getException();
181
        }
158
    }
182
    }
159
}
183
}

Return to bug 19133