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

Bug 358712

Summary: [analyzer] Parsing failure for ecore::EByte operations
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact: Ed Willink <ed>
Severity: normal    
Priority: P3    
Version: 3.1.0   
Target Milestone: M7   
Hardware: PC   
OS: Windows Vista   
Whiteboard: Legacy

Description Ed Willink CLA 2011-09-23 08:22:58 EDT
The following example

import ecore : 'http://www.eclipse.org/emf/2002/Ecore#/';

package Vlad : pfx = 'platform:/resource/Vlad/model/Vlad.oclinecore' {

class A {
    property ab : ecore::EByte;
    property as : ecore::EShort;
    property ai : ecore::EInt;
} 
}

fails to evaluate (unresolved opertation)

self.ab +1

The problem is a missing if case for "byte" in UMLReflectionImpl.getOCLTypeFor.
Comment 1 Ed Willink CLA 2011-11-09 02:52:42 EST
cf Bug 358713: All of EByte, EByteObject, EChar and ECharacterObject may need attention.
Comment 2 Ed Willink CLA 2012-05-01 16:55:04 EDT
(In reply to comment #1)
> cf Bug 358713: All of EByte, EByteObject, EChar and ECharacterObject may need
> attention.

EChar and ECharacterObject are not numbers.

Numeric types tested and fixed on bug/344368b branch.
Comment 3 Ed Willink CLA 2012-05-04 12:49:05 EDT
Pushed to master.
Comment 4 Ed Willink CLA 2013-05-20 11:36:04 EDT
CLOSED after a year in the RESOLVED state.