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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/CompilationUnitScope.java (+6 lines)
Lines 523-528 Link Here
523
523
524
	// look to see if its a static field first
524
	// look to see if its a static field first
525
	ReferenceBinding type = (ReferenceBinding) binding;
525
	ReferenceBinding type = (ReferenceBinding) binding;
526
	if (type.superInterfaces() == null) {
527
		// have yet to connect hierarchy or create fields and methods
528
		SourceTypeBinding sourceType = (SourceTypeBinding) type.erasure();
529
		sourceType.scope.connectTypeHierarchy();
530
		sourceType.scope.buildFieldsAndMethods();
531
	}
526
	FieldBinding field = findField(type, name, null, true);
532
	FieldBinding field = findField(type, name, null, true);
527
	if (field != null) {
533
	if (field != null) {
528
		if (field.problemId() == ProblemReasons.Ambiguous && ((ProblemFieldBinding) field).closestMatch.isStatic())
534
		if (field.problemId() == ProblemReasons.Ambiguous && ((ProblemFieldBinding) field).closestMatch.isStatic())

Return to bug 230026