### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/ast/CompoundAssignment.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompoundAssignment.java,v retrieving revision 1.54 diff -u -r1.54 CompoundAssignment.java --- compiler/org/eclipse/jdt/internal/compiler/ast/CompoundAssignment.java 28 Mar 2006 20:29:56 -0000 1.54 +++ compiler/org/eclipse/jdt/internal/compiler/ast/CompoundAssignment.java 16 May 2008 20:36:00 -0000 @@ -153,7 +153,7 @@ return null; } if (operator == PLUS){ - if(lhsID == T_JavaLangObject) { + if(lhsID == T_JavaLangObject && (scope.compilerOptions().complianceLevel < ClassFileConstants.JDK1_7)) { // += is illegal (39248) scope.problemReporter().invalidOperator(this, lhsType, expressionType); return null;