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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/FieldReference.java (-1 lines)
Lines 506-512 Link Here
506
		if (binding.isStatic()) {
506
		if (binding.isStatic()) {
507
			// static field accessed through receiver? legal but unoptimal (optional warning)
507
			// static field accessed through receiver? legal but unoptimal (optional warning)
508
			if (!(isImplicitThisRcv
508
			if (!(isImplicitThisRcv
509
					|| receiver.isSuper()
510
					|| (receiver instanceof NameReference 
509
					|| (receiver instanceof NameReference 
511
						&& (((NameReference) receiver).bits & BindingIds.TYPE) != 0))) {
510
						&& (((NameReference) receiver).bits & BindingIds.TYPE) != 0))) {
512
				scope.problemReporter().nonStaticAccessToStaticField(this, binding);
511
				scope.problemReporter().nonStaticAccessToStaticField(this, binding);

Return to bug 68927