Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326619

Summary: validate type compatibility for assignment operators += etc
Product: z_Archived Reporter: Henrik Lindberg <henrik.lindberg>
Component: b3Assignee: Project Inbox <b3.engine-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Henrik Lindberg CLA 2010-09-29 21:52:09 EDT
The type compatibility must be validated when assignment operators are used

example:

Integer a = 10;
a += "hello";

Which results in a call to +(10, "hello") which produces "10hello" which has incompatible type with Integer.
Comment 1 Henrik Lindberg CLA 2010-09-29 21:53:11 EDT
Fixed in revision 1310.