ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0005941Part 01: TTCN-3 Core LanguageClarificationpublic04-10-2011 15:3116-12-2011 05:19
Gyorgy Rethy 
Ina Schieferdecker 
normalminorhave not tried
closedfixed 
 
v4.4.1 (published 2012-04)v4.4.1 (published 2012-04) 
C.29
L.M.Ericsson
0005941: What lenghtof shall return for record of templates with uninitialized elements?
The current text says:
"The parameter inpar shall only match values, for which the lengthof function would give the same result."

However, this description doesn't fit to case when the template contains uninitialize elements (what such template would match?).

It is proposed to complete the sentence:
""The parameter inpar shall only match values, for which the lengthof function would give the same result; for the purpose of this evaluation uninitialized elements shall be handled as they contained the AnyElement matching mechanism."
"
No tags attached.
related to 0005944closed Ina Schieferdecker Misleading sentence for lengthof for arrays. 
doc CR5941_resolution_v2.doc (81,408) 02-12-2011 10:23
http://oldforge.etsi.org/mantis/file_download.php?file_id=2654&type=bug
Issue History
04-10-2011 15:31Gyorgy RethyNew Issue
04-10-2011 15:31Gyorgy RethyClause Reference(s) => C.29
04-10-2011 15:31Gyorgy RethySource (company - Author) => L.M.Ericsson
06-10-2011 11:45Gyorgy RethyFixed in Version => Edition 4.4.1
28-11-2011 16:29Gyorgy RethyAssigned To => Ina Schieferdecker
28-11-2011 16:29Gyorgy RethyStatusnew => assigned
28-11-2011 16:29Gyorgy RethyFixed in VersionEdition 4.4.1 =>
28-11-2011 16:29Gyorgy RethyTarget Version => Edition 4.4.1
29-11-2011 10:05Ina SchieferdeckerNote Added: 0010373
29-11-2011 10:06Ina SchieferdeckerNote Added: 0010374
29-11-2011 10:06Ina SchieferdeckerAssigned ToIna Schieferdecker => Gyorgy Rethy
02-12-2011 10:23Gyorgy RethyNote Added: 0010503
02-12-2011 10:23Gyorgy RethyFile Added: CR5941_resolution_v2.doc
02-12-2011 10:23Gyorgy RethyAssigned ToGyorgy Rethy => Ina Schieferdecker
02-12-2011 14:01Ina SchieferdeckerNote Added: 0010525
02-12-2011 14:06Ina SchieferdeckerRelationship addedrelated to 0005944
16-12-2011 05:19Ina SchieferdeckerStatusassigned => resolved
16-12-2011 05:19Ina SchieferdeckerResolutionopen => fixed
16-12-2011 05:19Ina SchieferdeckerFixed in Version => Edition 4.4.1
16-12-2011 05:19Ina SchieferdeckerStatusresolved => closed

Notes
(0010373)
Ina Schieferdecker   
29-11-2011 10:05   
Proposed to change to

"In case of string-type templates, the inpar template shall match values of the same length only. If inpar contains uninitialized elements, these shall be handled as if they would be "*" (AnyElementsOrNone inside value)."

"In case of templates of record of or set of types, the inpar template shall match values for which the lengthof function would give the same result only. If inpar contains uninitialized elements, these shall be handled as if they would be "*" (AnyElementsOrNone inside value)."


And adding before the paragraphs on templates for lengthof the following:

"When the function lengthof is applied to string-type templates or to templates of record of or set of types, the length is to be determined by the length of values defined in the template or by the length restriction matching attribute of that template if matching attributes like "*" (AnyElementsOrNone instead of a value) are used that do not predetermine the length."
(0010374)
Ina Schieferdecker   
29-11-2011 10:06   
Please check resolution noted above.
(0010503)
Gyorgy Rethy   
02-12-2011 10:23   
See resolution proosal in file in CR5941_resolution_v2.doc. Pls. review.
(0010525)
Ina Schieferdecker   
02-12-2011 14:01   
as proposed.