ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0007390 | Part 01: TTCN-3 Core Language | Editorial | public | 08-02-2016 10:05 | 09-12-2016 15:07

Reporter | Bogdan Stanca-Kaposta |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | trivial | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v4.7.1 (published 2015-06) |
Target Version | v4.9.1 (published 2017-05) | Fixed in Version | v4.9.1 (published 2017-05) |
Clause Reference(s) | 19.3.1 The Select case statement
Source (company - Author) | STF 487

Summary | 0007390: Misleading variable name
Description | On the Example at page 158, the variable name "myTempVar" may be misleading (since may be interpreted as my template variable). Conform 15.9 Match Operation the first parameter of the match operator is the expression and second the template.
Steps To Reproduce |

Additional Information

page 158
// the above select statement is equivalent to the following nested if-else statement.
// Note: the following textual replacement of the select-case statement is described in
// the operational semantics of TTCN-3.
{
var charstring myTempVar := MyModulePar;
if (match(myTempVar, "firstValue")
{
log ("The first branch is selected");
}
else if (match(myTempVar, MyCharVar) or match(myTempVar, MyCharConst))
{
log ("The second branch is selected");
}
else
{
log ("The value of the module parameter MyModulePar is selected");
}
}

Tags | No tags attached.
Relationships |
Attached Files | CR7390_resolution_v1.docx (80,611) 15-08-2016 09:45 http://oldforge.etsi.org/mantis/file_download.php?file_id=3439&type=bug CR7390_resolution_v2.docx (61,851) 09-11-2016 07:38 http://oldforge.etsi.org/mantis/file_download.php?file_id=3513&type=bug

Issue History
Date Modified | Username | Field | Change
08-02-2016 10:05 | Bogdan Stanca-Kaposta | New Issue |
18-07-2016 10:47 | Jens Grabowski | Note Added: 0013975 |
18-07-2016 10:47 | Jens Grabowski | Assigned To | => Axel Rennoch
18-07-2016 10:47 | Jens Grabowski | Status | new => assigned
15-08-2016 09:45 | Axel Rennoch | File Added: CR7390_resolution_v1.docx |
15-08-2016 09:46 | Axel Rennoch | Note Added: 0014059 |
15-08-2016 09:46 | Axel Rennoch | Assigned To | Axel Rennoch => Gyorgy Rethy
15-08-2016 09:46 | Axel Rennoch | Status | assigned => confirmed
17-08-2016 11:58 | Jacob Wieland - Spirent | Target Version | => v4.9.1 (published 2017-05)
09-11-2016 07:38 | Gyorgy Rethy | File Added: CR7390_resolution_v2.docx |
09-11-2016 07:38 | Gyorgy Rethy | Note Added: 0014222 |
09-11-2016 07:38 | Gyorgy Rethy | Status | confirmed => resolved
09-11-2016 07:38 | Gyorgy Rethy | Fixed in Version | => v4.9.1 (published 2017-05)
09-11-2016 07:38 | Gyorgy Rethy | Resolution | open => fixed
09-12-2016 15:07 | Gyorgy Rethy | Note Added: 0014366 |
09-12-2016 15:07 | Gyorgy Rethy | Status | resolved => closed

Notes

(0013975)
Jens Grabowski
18-07-2016 10:47

@Axel: if ok, resolve and assign to György for integration.

(0014059)
Axel Rennoch
15-08-2016 09:46

Please have a look to the resolution.

(0014222)
Gyorgy Rethy
09-11-2016 07:38

variable name is also replaced in the first if.

(0014366)
Gyorgy Rethy
09-12-2016 15:07

Added to draft V4.8.2