Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326619 - validate type compatibility for assignment operators += etc
Summary: validate type compatibility for assignment operators += etc
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: b3 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 21:52 EDT by Henrik Lindberg CLA
Modified: 2017-09-13 11:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.