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

Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/internal/compiler/ast/FieldReference.java (+1 lines)
Lines 328-333 Link Here
328
	   possibleTypeBinding = scope.getBinding( possibleTypeName, Binding.TYPE  & RestrictiveFlagMASK, this, true /*resolve*/);
328
	   possibleTypeBinding = scope.getBinding( possibleTypeName, Binding.TYPE  & RestrictiveFlagMASK, this, true /*resolve*/);
329
	if(possibleTypeBinding != null && possibleTypeBinding.isValidBinding() && (TypeBinding)possibleTypeBinding != scope.getJavaLangObject()) {
329
	if(possibleTypeBinding != null && possibleTypeBinding.isValidBinding() && (TypeBinding)possibleTypeBinding != scope.getJavaLangObject()) {
330
		this.typeBinding=(TypeBinding)possibleTypeBinding;
330
		this.typeBinding=(TypeBinding)possibleTypeBinding;
331
		constant = Constant.NotAConstant;
331
		this.bits|=Binding.TYPE;
332
		this.bits|=Binding.TYPE;
332
		return this.typeBinding;
333
		return this.typeBinding;
333
	}
334
	}
(-)src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicResolveTests.java (+14 lines)
Lines 1746-1749 Link Here
1746
			);
1746
			);
1747
	}
1747
	}
1748
	
1748
	
1749
	public void testbug318004() {
1750
		this.runNegativeTest(
1751
					new String[] {
1752
							"Z.js",
1753
							"var obj = {};\n" +
1754
							"obj.first = {};\n" +
1755
							"obj.first.second = function() {};\n" +
1756
							"obj.first.second.prototype = new Object();\n" +
1757
							"if({} != obj.first.second) {}"
1758
					},
1759
					""
1760
			);
1761
	}
1762
	
1749
}
1763
}

Return to bug 318004