Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch Available
Description
The following IDL
typedef map<string,Bonk> MapType const ThriftTest.MapType MAPCONSTANT = {'hello':{}, 'goodnight':{}}
creates uncompileable code at FMAPCONSTANT, because TMapType is a reference to an interface type, not the implementing class type:
class constructor TConstants.Create;
begin
FMAPCONSTANT := TMapType.Create;
end;
Expected code would be
class constructor TConstants.Create; begin FMAPCONSTANT := TThriftDictionaryImpl<string, IBonk>.Create; FMAPCONSTANT.Add( 'hello', TBonkImpl.Create); FMAPCONSTANT.Add( 'goodnight', TBonkImpl.Create); end;