View | Details | Raw Unified | Return to bug 323012 | Differences between
and this patch

Collapse All | Expand All

(-)eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/ContextFinder.java (-1 / +3 lines)
Lines 39-44 Link Here
39
		});
39
		});
40
	}
40
	}
41
41
42
	private static Class<ContextFinder> THIS = ContextFinder.class;
43
42
	private final ClassLoader parentContextClassLoader;
44
	private final ClassLoader parentContextClassLoader;
43
45
44
	public ContextFinder(ClassLoader contextClassLoader) {
46
	public ContextFinder(ClassLoader contextClassLoader) {
Lines 56-62 Link Here
56
		ClassLoader previousLoader = null;
58
		ClassLoader previousLoader = null;
57
		for (int i = 1; i < stack.length; i++) {
59
		for (int i = 1; i < stack.length; i++) {
58
			ClassLoader tmp = stack[i].getClassLoader();
60
			ClassLoader tmp = stack[i].getClassLoader();
59
			if (stack[i] != ContextFinder.class && tmp != null && tmp != this) {
61
			if (stack[i] != THIS && tmp != null && tmp != this) {
60
				if (checkClassLoader(tmp)) {
62
				if (checkClassLoader(tmp)) {
61
					if (previousLoader != tmp) {
63
					if (previousLoader != tmp) {
62
						result.add(tmp);
64
						result.add(tmp);

Return to bug 323012