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

Bug 359925

Summary: should add validation error for unsupported/illegal operations on primitive types
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jing Qian CLA 2011-10-04 17:09:38 EDT
d date;

d = d+1;         ==> get mof.NoSuchFunctionFound exception during generation
d+=1;            ==>  generated java has errors.

the above statements are invalid for date, 
user needs to use d = d.addDays(1);

Please add validations for these
Comment 1 Paul Harmon CLA 2011-10-11 11:45:57 EDT
Validation has been updated to give errors if date/time types are used on a arithetic expression/assignment
Comment 2 Jing Qian CLA 2011-11-11 15:34:54 EST
verified on 2011/11/11/0901's build