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

Bug 351631

Summary: Validations to avoid bad code for setting delegate
Product: [Modeling] EMF Reporter: Ed Willink <ed>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Demonstration project none

Description Ed Willink CLA 2011-07-09 10:57:58 EDT
Created attachment 199373 [details]
Demonstration project

The attached project gives two errors when genmodeled. The errors go away after regenmodeling without the setting delegate.

The first problem is a missing default initial value constant. This also goes away if the attribute is set non-changeable. Perhaps there should be a validation warning for a changeable setting delegate.

The second problem is the use of the attribute's field in toString(), even though the field does not exist. This also goes away if the attribute is set volatile. Perhaps there should be a validation warning for a non-volatile setting delegate.
Comment 1 Ed Merks CLA 2013-01-10 08:28:53 EST

*** This bug has been marked as a duplicate of bug 386050 ***