View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008951FPCCompilerpublic2007-05-26 01:482012-01-04 15:53
ReporterMario R. Carro 
Assigned ToIvo Steinmann 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product VersionProduct Build 
Target Version2.4.0Fixed in Version 
Summary0008951: FPC doesn't allow implements properties be of class types
DescriptionDelphi allows implements properties to be of class types derived from TAggregatedObject, but FPC requires them to be of interface types.

For example this line (from the JclSchedule.pas unit of the JCL):

    property DailyFreq: TDailyFreq read FDailyFreq implements IJclScheduleDayFrequency;

fails to compile with the message:

JclSchedule.pas(1327,87) Error: Implements property must have interface type
Tagscom, jcl
FPCOldBugId0
Fixed in Revision
Attached Files? file icon test.pas [^] (440 bytes) 2007-06-05 00:54
html file icon implements.html [^] (69,497 bytes) 2009-04-25 12:15

- Relationships
parent of 0016531new Partial interface delegation to class 
related to 0004842assignedIvo Steinmann implements keyword in properties 
related to 0012778closedIvo Steinmann GetInterface returns wrong results when using delegated interfaces 
related to 0016365resolvedIvo Steinmann Interface delegation by class type property 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0012814)
Jonas Maebe (manager)
2007-05-26 16:09

Please provide a compilable sample program.
(0012961)
Mario R. Carro (reporter)
2007-06-05 00:57

Hi. The program I uploaded compiles without errors with D7, but fails with FPC r7578:

Free Pascal Compiler version 2.3.1 [2007/06/04] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling test.pas
test.pas(17,63) Error: Implements property must have interface type
test.pas(18,6) Error: No matching implementation for interface method "IIntf.F:DWord" found
test.pas(27) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
(0015797)
Marco van de Voort (manager)
2007-10-28 14:00

Also ran into this. Lazarus is preparing to support JVCL that depends on JCL, so it would be nice if it was fixed.
(0017592)
Marco van de Voort (manager)
2008-02-03 21:41

Found something:


http://www.geocities.com/svi37/cyber/delphi9/iimplementation.html [^]
(0027067)
Jonas Maebe (manager)
2009-04-25 12:15

I've attached that page since Geocities is being discontinued.

- Issue History
Date Modified Username Field Change
2007-05-26 01:48 Mario R. Carro New Issue
2007-05-26 16:09 Jonas Maebe Note Added: 0012814
2007-06-05 00:54 Mario R. Carro File Added: test.pas
2007-06-05 00:57 Mario R. Carro Note Added: 0012961
2007-06-13 10:08 Marco van de Voort Note Added: 0013172
2007-06-13 10:34 Marco van de Voort Note Deleted: 0013172
2007-10-28 14:00 Marco van de Voort FPCOldBugId => 0
2007-10-28 14:00 Marco van de Voort FPCTarget => -
2007-10-28 14:00 Marco van de Voort Note Added: 0015797
2007-10-28 14:00 Marco van de Voort Severity minor => major
2007-10-28 14:01 Marco van de Voort Relationship added related to 0004842
2008-01-29 23:25 Marco van de Voort Status new => assigned
2008-01-29 23:25 Marco van de Voort Assigned To => Florian
2008-02-03 21:41 Marco van de Voort Note Added: 0017592
2008-05-07 12:08 Marco van de Voort Tag Attached: jcl
2008-12-10 09:04 Marco van de Voort Relationship added related to 0012778
2009-04-25 12:15 Jonas Maebe File Added: implements.html
2009-04-25 12:15 Jonas Maebe Note Added: 0027067
2009-08-09 11:28 Florian Target Version => 2.4.0
2009-10-16 23:39 Marco van de Voort Tag Attached: com
2010-03-27 16:18 Ivo Steinmann Assigned To Florian => Ivo Steinmann
2010-04-29 18:01 Jonas Maebe Relationship added related to 0016365
2012-01-04 15:53 Marco van de Voort Relationship added parent of 0016531



MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker