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

Bug 326727

Summary: validation of assignment does not consider eSet for EList
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-30 20:13:24 EDT
When validating assignability, EList.class.isAssignaleFrom(List.class) returns false. At runtime, the fact that the instance is an EObject is detected, and eSet is used instead.

Static checking needs to use a different approach when checking what will result in an eSet.
Comment 1 Henrik Lindberg CLA 2010-09-30 20:17:30 EDT
Fixed in rev 1311.

Added isESettableFrom(Type, Type) to TypeUtils.
Added polymorph dispatching of typeInfo to ITypeProvider which returns ITypeInfo with static information about a LValue type. (Required to enable checking if the feature type comes from an EObject).