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
0006309Part 07: Using ASN.1 with TTCN-3Technicalpublic10-09-2012 21:2719-12-2012 13:47
Reportertepelmann 
Assigned ToGyorgy Rethy 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionv4.4.1 (published 2012-04) 
Target Versionv4.5.1 (published 2013-04)Fixed in Versionv4.5.1 (published 2013-04) 
Summary0006309: NamedNumber should be mapped to constant in TTCN-3
DescriptionIn chapter "9.1 Transformation rules for ASN.1 types and values" in transformation rule 12) the handling of named numbers is defined.
Currently the named numbers are ignored.
This is valid for mapping the type itself. However the named numbers are given to provide specific meanings to specific values. This can be used in TTCN-3 as well.
The named numbers shall be mapped to constants in TTCN-3.
A proposal for the name of the constant is as follow: the type name as prefix, followed by an underscore and the name of the named number and a final underscore to avoid name clashes.

To keep the named number in the format of constant is also important as a change of the named number in the ASN.1 module would be transparent for the TTCN-3 module, if the TTCN-3 constant is used inside TTCN-3 rather then a direct number(which may have changed the meaning in ASN.1)
Additional Informatione.g.:
Definition in ASN.1:
  Color ::= INTEGER {red(0),green(1), blue(255) }

Mapped constant in TTCN-3:
  type integer Color;

  const Color Color_green_ := 1;

  const Color Color_red_ := 0;

  const Color Color_blue_ := 255;
TagsNo tags attached.
Clause Reference(s)9.1
Source (company - Author)     Testing Technologies - tepelmann
Attached Filesdoc file icon CR6309_resolution_v1.doc [^] (120,832 bytes) 11-12-2012 13:08

- Relationships

-  Notes
(0011221)
Gyorgy Rethy (reporter)
11-12-2012 13:09

See proposed resolution in file CR6309_resolution_v1.doc
(0011289)
Gyorgy Rethy (reporter)
19-12-2012 13:47

Implemented in draft V4.4.2

- Issue History
Date Modified Username Field Change
10-09-2012 21:27 tepelmann New Issue
10-09-2012 21:27 tepelmann Clause Reference(s) => 9.1
10-09-2012 21:27 tepelmann Source (company - Author) => Testing Technologies - tepelmann
10-12-2012 13:23 Gyorgy Rethy Status new => assigned
10-12-2012 13:23 Gyorgy Rethy Assigned To => Gyorgy Rethy
10-12-2012 16:55 Gyorgy Rethy Target Version => Edition 4.5.1
11-12-2012 13:08 Gyorgy Rethy File Added: CR6309_resolution_v1.doc
11-12-2012 13:09 Gyorgy Rethy Note Added: 0011221
11-12-2012 13:09 Gyorgy Rethy Status assigned => resolved
11-12-2012 13:09 Gyorgy Rethy Resolution open => fixed
11-12-2012 13:09 Gyorgy Rethy Fixed in Version => Edition 4.5.1
19-12-2012 13:47 Gyorgy Rethy Status resolved => closed
19-12-2012 13:47 Gyorgy Rethy Note Added: 0011289


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