ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0007390Part 01: TTCN-3 Core LanguageEditorialpublic08-02-2016 10:0509-12-2016 15:07
Bogdan Stanca-Kaposta 
Gyorgy Rethy 
normaltrivialhave not tried
closedfixed 
v4.7.1 (published 2015-06) 
v4.9.1 (published 2017-05)v4.9.1 (published 2017-05) 
19.3.1 The Select case statement
STF 487
0007390: Misleading variable name
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.
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");
 }
 }
No tags attached.
docx CR7390_resolution_v1.docx (80,611) 15-08-2016 09:45
http://oldforge.etsi.org/mantis/file_download.php?file_id=3439&type=bug
docx 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
08-02-2016 10:05Bogdan Stanca-KapostaNew Issue
18-07-2016 10:47Jens GrabowskiNote Added: 0013975
18-07-2016 10:47Jens GrabowskiAssigned To => Axel Rennoch
18-07-2016 10:47Jens GrabowskiStatusnew => assigned
15-08-2016 09:45Axel RennochFile Added: CR7390_resolution_v1.docx
15-08-2016 09:46Axel RennochNote Added: 0014059
15-08-2016 09:46Axel RennochAssigned ToAxel Rennoch => Gyorgy Rethy
15-08-2016 09:46Axel RennochStatusassigned => confirmed
17-08-2016 11:58Jacob Wieland - SpirentTarget Version => v4.9.1 (published 2017-05)
09-11-2016 07:38Gyorgy RethyFile Added: CR7390_resolution_v2.docx
09-11-2016 07:38Gyorgy RethyNote Added: 0014222
09-11-2016 07:38Gyorgy RethyStatusconfirmed => resolved
09-11-2016 07:38Gyorgy RethyFixed in Version => v4.9.1 (published 2017-05)
09-11-2016 07:38Gyorgy RethyResolutionopen => fixed
09-12-2016 15:07Gyorgy RethyNote Added: 0014366
09-12-2016 15:07Gyorgy RethyStatusresolved => 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