E2252 Method 'LoadFromArray' with identical parameters already exists


(zugyby) #1

When migrating from Version 8.3.93 to Version 9.4.109.1377 I got the following multiple (there are many similar errors) like:

[dcc32 Error] ???_Intf.pas(618): E2252 Method ‘LoadFromArray’ with identical parameters already exists

It looks there are many duplicated interfaces shown in the edit service tool.

I suspect there is something wrong with backward compatibility of 9.4 new feature “Code-First”.
Any suggestions on migrating code from 8.3 to 9.4?

Thanks


(EvgenyK) #2

Hi,

can you create a simple testcase that reproduces this error?

we have LoadFromArray only in

procedure TROCollection<T>.LoadFromArray(anArray: TROArray<T>);

so I can suspect that you converted RODL-based server to Code-First based w/o our wizard …


(zugyby) #3

Hi thanks for the answer. I can provide you more code in private.

I am trying to migrate a huge interface from our platform from 8.3.93 RODL to 9.4… not necessary code-first, but it is important to work with 9.4. I see it is mentioned in the docs that 9.4 is backward compatible, so I hope to migrate it with minimum efforts.
Where I can find the wizard to convert the RODL interface to code-first or whatever you recommend?

Thanks


(EvgenyK) #4

Hi,
you can do this via IDE wizard inside Delphi IDE:

Untitled

also Service Builder allows to generate files in Code-First compatible mode: