Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358712 - [analyzer] Parsing failure for ecore::EByte operations
Summary: [analyzer] Parsing failure for ecore::EByte operations
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: OCL Inbox CLA
QA Contact: Ed Willink CLA
URL:
Whiteboard: Legacy
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 08:22 EDT by Ed Willink CLA
Modified: 2013-05-20 11:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.