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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/Assignment.java (+7 lines)
Lines 118-123 Link Here
118
			// i = i++; // eq to ++i;
118
			// i = i++; // eq to ++i;
119
			return getDirectBinding (((Assignment)someExpression).lhs);
119
			return getDirectBinding (((Assignment)someExpression).lhs);
120
		}
120
		}
121
	} else if (someExpression instanceof QualifiedNameReference) {
122
		QualifiedNameReference qualifiedNameReference = (QualifiedNameReference) someExpression;
123
		if (qualifiedNameReference.indexOfFirstFieldBinding != 1
124
				&& qualifiedNameReference.otherBindings == null) {
125
			// case where a static field is retrieve using ClassName.fieldname
126
			return qualifiedNameReference.binding;
127
		}
121
	}
128
	}
122
//		} else if (someExpression instanceof PostfixExpression) { // recurse for postfix: i++ --> i
129
//		} else if (someExpression instanceof PostfixExpression) { // recurse for postfix: i++ --> i
123
//			// note: "b = b++" is equivalent to doing nothing, not to "b++"
130
//			// note: "b = b++" is equivalent to doing nothing, not to "b++"

Return to bug 200724