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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/CompoundAssignment.java (-1 / +1 lines)
Lines 153-159 Link Here
153
			return null;
153
			return null;
154
		}
154
		}
155
		if (operator == PLUS){
155
		if (operator == PLUS){
156
			if(lhsID == T_JavaLangObject) {
156
			if(lhsID == T_JavaLangObject && (scope.compilerOptions().complianceLevel < ClassFileConstants.JDK1_7)) {
157
				// <Object> += <String> is illegal (39248)
157
				// <Object> += <String> is illegal (39248)
158
				scope.problemReporter().invalidOperator(this, lhsType, expressionType);
158
				scope.problemReporter().invalidOperator(this, lhsType, expressionType);
159
				return null;
159
				return null;

Return to bug 232558