| Summary: | [editor] missing semantic validation allows NPE when property/attribute interchanged | ||
|---|---|---|---|
| Product: | [Modeling] OCL | Reporter: | Joern E. <joern_e> |
| Component: | Core | Assignee: | OCL Inbox <mdt-ocl-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | ed |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Joern E.
The NPE aruses because a feature has no getEAttributeType since its a reference. Changing Atype.referencedAttr from 'attribute' to 'property' fixes the problem. The bug is therefore that the Xtext editors do not yet have semantic validation. This problem goes away using the intermediate pivot model for which attributes and referemces are all properties. Unfortunately Bug 344948 prevents the repro being followed. Need to use the Sample Ecore Editor to do Create Dynamic Instance. Closing |