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
0005944Part 01: TTCN-3 Core LanguageTechnicalpublic06-10-2011 10:0129-11-2011 14:07
ReporterGyorgy Rethy 
Assigned ToIna Schieferdecker 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Versionv4.4.1 (published 2012-04)Fixed in Versionv4.4.1 (published 2012-04) 
Summary0005944: Misleading sentence for lengthof for arrays.
DescriptionThe current text, regarding the lengthof arrays is:
"For record of, set of, and array, the value to be returned is the sequential number of the last initialized element: in case of record of and set of the index of that element plus 1. In case of arrays, lengthof should return the index of that last element minus the index of the first element plus 1.
The length of a fixed length record of, set of, or array value will always be the fixed length according to the type definition."

Arrays are equivalent to fixed-length record ofs, thus the sentence "In case of arrays..." is simply wrong and contradicts to the next sentence ("The length of a fixed length record of, set of, or array value will always be the fixed length according to the type definition.").

Arrays are always of fixed length. Therefore each instance of an array definition (like instances of fixed-length record/set of types) shall have exactly the length specified in the definition. The text shall be changed to:
"For non-fixed length record of and set of, the value to be returned is the sequential number of the last initialized element: the index of that element plus 1.
The length of a fixed length record of, set of and arrays shall always be the fixed length according to their types: in case of record of and set of the size specified by the length restriction of the type definition, in case of arrays it shall be the upper index minus the lower index plus 1."
TagsNo tags attached.
Clause Reference(s)C.29
Source (company - Author)L.M.Ericsson
Attached Filesdoc file icon CR5944.doc [^] (87,552 bytes) 29-11-2011 10:30

- Relationships
related to 0005941closedIna Schieferdecker What lenghtof shall return for record of templates with uninitialized elements? 

-  Notes
(0010332)
Jacob Wieland - Spirent (reporter)
28-11-2011 10:13

Agreed. But I would grammatically re-formulate it to:

"The length of a fixed length record of, set of or array shall always be the fixed length according to its type ..."
(0010343)
Gyorgy Rethy (reporter)
28-11-2011 12:54

has to be discussed as different tools give different results. Therefore we need more detailed investigation.
(0010362)
Gyorgy Rethy (reporter)
28-11-2011 16:24

STF discussion 28/11: formulate the resolution text. Take into account the minimum length acc. to the lenght restriction; fixed length is a special case of this.
(0010378)
Jacob Wieland - Spirent (reporter)
29-11-2011 10:31

uploaded proposal, please review
(0010396)
Ina Schieferdecker (reporter)
29-11-2011 14:06

As proposed.

- Issue History
Date Modified Username Field Change
06-10-2011 10:01 Gyorgy Rethy New Issue
06-10-2011 10:01 Gyorgy Rethy Clause Reference(s) => C.29
06-10-2011 10:01 Gyorgy Rethy Source (company - Author) => L.M.Ericsson
06-10-2011 11:44 Gyorgy Rethy Target Version => Edition 4.4.1
06-10-2011 11:44 Gyorgy Rethy Summary Misleading definition for lengthof for arrays. => Misleading sentence for lengthof for arrays.
06-10-2011 11:44 Gyorgy Rethy Description Updated
07-10-2011 16:35 Gyorgy Rethy Description Updated
07-10-2011 17:01 Gyorgy Rethy Description Updated
28-11-2011 10:13 Jacob Wieland - Spirent Note Added: 0010332
28-11-2011 12:54 Gyorgy Rethy Note Added: 0010343
28-11-2011 16:24 Gyorgy Rethy Note Added: 0010362
28-11-2011 16:24 Gyorgy Rethy Assigned To => Jacob Wieland - Spirent
28-11-2011 16:24 Gyorgy Rethy Status new => assigned
29-11-2011 10:30 Jacob Wieland - Spirent File Added: CR5944.doc
29-11-2011 10:31 Jacob Wieland - Spirent Note Added: 0010378
29-11-2011 10:31 Jacob Wieland - Spirent Assigned To Jacob Wieland - Spirent => Ina Schieferdecker
29-11-2011 14:06 Ina Schieferdecker Note Added: 0010396
29-11-2011 14:06 Ina Schieferdecker Status assigned => resolved
29-11-2011 14:06 Ina Schieferdecker Resolution open => fixed
29-11-2011 14:06 Ina Schieferdecker Fixed in Version => Edition 4.4.1
29-11-2011 14:07 Ina Schieferdecker Status resolved => closed
02-12-2011 14:06 Ina Schieferdecker Relationship added related to 0005941


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