Logo etsi

ETSI's Bug Tracker

Notice: information submitted on the ETSI issue Tracker may be incorporated in ETSI publication(s) and therefore subject to the ETSI IPR policy.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007390Part 01: TTCN-3 Core LanguageEditorialpublic08-02-2016 10:0509-12-2016 15:07
ReporterBogdan Stanca-Kaposta 
Assigned ToGyorgy Rethy 
PrioritynormalSeveritytrivialReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionv4.7.1 (published 2015-06) 
Target Versionv4.9.1 (published 2017-05)Fixed in Versionv4.9.1 (published 2017-05) 
Summary0007390: Misleading variable name
DescriptionOn 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.
Additional Informationpage 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");
 }
 }
TagsNo tags attached.
Clause Reference(s)19.3.1 The Select case statement
Source (company - Author)STF 487
Attached Filesdocx file icon CR7390_resolution_v1.docx [^] (80,611 bytes) 15-08-2016 09:45
docx file icon CR7390_resolution_v2.docx [^] (61,851 bytes) 09-11-2016 07:38

- Relationships

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

@Axel: if ok, resolve and assign to György for integration.
(0014059)
Axel Rennoch (developer)
15-08-2016 09:46

Please have a look to the resolution.
(0014222)
Gyorgy Rethy (reporter)
09-11-2016 07:38

variable name is also replaced in the first if.
(0014366)
Gyorgy Rethy (reporter)
09-12-2016 15:07

Added to draft V4.8.2

- 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


MantisBT 1.2.14 [^]
Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker