ETSI's Bug Tracker - Ext Pack: Extended TRI (ES 202 789)
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0006334 | Ext Pack: Extended TRI (ES 202 789) | Technical | public | 20-11-2012 13:50 | 11-12-2012 14:22

Reporter | Tomas Urban |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v1.2.1 (published 2013-04) | Fixed in Version | v1.2.1 (published 2013-04) |
Clause Reference(s) | 8.6.2
Source (company - Author) | Elvior

Summary | 0006334: C++ mapping: invalid return value of xtriConvert

Description

The xtriConvert function of the xTriCommunicationTE class return a stack-allocated instance TciValue. This will always lead to a compilation error, because TciValue is an abstract class. The correct signature could be:
virtual TciValue * xtriConvert(const Object *value, const TciType *typeHypothesis)=0;
or
virtual TciValue & xtriConvert(const Object *value, const TciType *typeHypothesis)=0;
I would prefer the first variant, since the method obviously has capability of creating new objects and this way it is possible to pass the responsibility for disposing the created objects to the caller.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
20-11-2012 13:50 | Tomas Urban | New Issue |
20-11-2012 13:50 | Tomas Urban | Clause Reference(s) | => 8.6.2
20-11-2012 13:50 | Tomas Urban | Source (company - Author) | => Elvior
20-11-2012 13:51 | Tomas Urban | Note Added: 0011181 |
23-11-2012 07:14 | Tomas Urban | Project | Part 06: TTCN-3 Control Interface => Ext Pack: Extended TRI (ES 202 789)
10-12-2012 13:52 | Gyorgy Rethy | Status | new => assigned
10-12-2012 13:52 | Gyorgy Rethy | Assigned To | => Ina Schieferdecker
10-12-2012 16:39 | Gyorgy Rethy | Product Version | Edition 4.4.1 Published 2012-04-01 =>
10-12-2012 16:39 | Gyorgy Rethy | Target Version | => Edition 1.2.1 (ongoing)
11-12-2012 14:21 | Ina Schieferdecker | Note Added: 0011228 |
11-12-2012 14:21 | Ina Schieferdecker | Status | assigned => resolved
11-12-2012 14:21 | Ina Schieferdecker | Resolution | open => fixed
11-12-2012 14:21 | Ina Schieferdecker | Fixed in Version | => Edition 1.2.1 (ongoing)
11-12-2012 14:22 | Ina Schieferdecker | Status | resolved => closed

Notes

(0011181)
Tomas Urban
20-11-2012 13:51

This issue is related to Advanced TRI. Could anyone move it to this project?

(0011228)
Ina Schieferdecker
11-12-2012 14:21

Implemented the first proposal.