[mapguide][MG443][Modified] Typecasting of MgCoordinate to derived classes fails

Trevor Wekel trevor.wekel at autodesk.com
Wed Nov 1 12:35:05 EST 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG443

Type:
Defect

Artifact ID:
MG443 (Typecasting of MgCoordinate to derived classes fails)

Modified by:
Trevor Wekel
trevorwekel (trevor.wekel at autodesk.com)

The following modifications were made to this artifact:
---------------------------------------------------------------------

-- Artifact Status changed:
Old value:
New
New value:
Resolved
-- Status Explanation set to new value:
Code submitted
-- Resolution set to new value:
Submitted
-- Resolution Description set to new value:
Old value:
MgCoordinate derived classes were misssing CLASS_ID in their headers so IMake/Swig could not generate the appropriate casting logic.

A bug in IMake prevented property autogeneration when additional tokens appeared between the method name and the __get/__set comment eg:

GetX() = 0;  /// __get

The extra two tokens caused the generation logic to fail.

MgByteReader::ToString() only allows the reader to be converted to a string once.  Since most byte readers can be rewound, this is an unnecessary limitation.  An automatic rewind has been added to the method.
New value:
MgCoordinate derived classes were misssing CLASS_ID in their headers so IMake/Swig could not generate the appropriate casting logic.

A bug in IMake prevented property autogeneration when additional tokens appeared between the method name and the __get/__set comment eg:

GetX() = 0;  /// __get

The extra two tokens caused the generation logic to fail.

MgByteReader::ToString() only allows the reader to be converted to a string once.  Since most byte readers can be rewound, this is an unnecessary limitation.  An automatic rewind has been added to the method.

Testing Performed:

Server unit tests pass (383 OK)

Web Extensions tests 8/939 errors.  Looks as though there are minor FDO schema changes to SpatialContext, SelectFeatures, GetProviderCapabilties which are not related to this submission.

The .Net unit tests for collections and properties pass successfully.  Tests were enhanced to to check typecasting.



---------------------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list