superobject icon indicating copy to clipboard operation
superobject copied to clipboard

No longer compatible with Delphi 7

Open bLightZP opened this issue 8 years ago • 5 comments

The latest version is no longer compatible with Delphi 7,

In "supertimezone" there's "Generics.Collections" in the uses section. Also the definition of the "TSuperTimeZone" class is not backward compatible.

bLightZP avatar Jan 08 '17 12:01 bLightZP

Has anyone addressed this? I would like to use this in a legacy Delphi 7 application,

However if this project is no longer going to support Delphi 7 I completely understand the situation

DonovanBoddy avatar Jan 30 '17 11:01 DonovanBoddy

Get commit b0b774bd784a1ac6146003b200d3bb67811beebb

brunoklein99 avatar Feb 13 '17 13:02 brunoklein99

Same problem occurs in Delphi 2007

Kortenbach avatar Aug 02 '17 11:08 Kortenbach

I use the version of superobject in delphi-rest-client-api

drazde avatar May 09 '18 13:05 drazde

I had the compatiblity problem with delphi 7 too.

As a quick and dirty bugfix, I removed superdate.pas and supertimezone.pas from the project.

Change in superobject.pas // varDate: Result := TSuperObject.Create(DelphiToJavaDateTime(vDate)); //function TryObjectToDate(const obj: ISuperObject; var dt: TDateTime): Boolean;

Seems to work fine.

DominikBo avatar Jan 10 '19 10:01 DominikBo