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

Bug 326621

Summary: validate feature mutability
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:56:24 EDT
Currently feature mutability is only checked in runtime. Add static validation based on type.
Comment 1 Henrik Lindberg CLA 2010-09-30 20:25:42 EDT
Mutability for POJOs is now checked. For EObjects where only meta data knows if an eSet will succeed for EList features, static inference is not possible. 

In revision 1312, a check is made if the type is EObject, and the feature's type is EList - if so, it is reported as mutable. For all other cases, the presence of a setter method is required to be reported as mutable (or rather what PojoLValue considers settable).