Consultor Eletrônico



Kbase P129340: CAST function in the super class raises error referencing to sub class object
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   28/10/2008
Status: Unverified

SYMPTOM(s):

CAST function in a method of the Base Class

Child Class inherits from Base Class


Child Class implements interface IInterface


CAST(THIS-OBJECT,IInterface) raises error at compile time

** <program> could not understand line <number>. (196)


** Incompatible data types in expression or assignment. (223)

CAST function in the super class raises error referencing to sub class object

FACT(s) (Environment):

OpenEdge 10.x
All Supported Operating Systems

CAUSE:

Bug# OE00165881

FIX:

Upgrade to 10.1C01 or later

If upgrading is not an option, this error can be overcame CASTing to Progress.Lang.Object and then the sub class interface :

CAST(CAST(THIS-OBJECT,Progress.Lang.Object),IInterface)