Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359925 - should add validation error for unsupported/illegal operations on primitive types
Summary: should add validation error for unsupported/illegal operations on primitive t...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 17:09 EDT by Jing Qian CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments

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