ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0007459Part 01: TTCN-3 Core LanguageClarificationpublic22-07-2016 14:4412-12-2016 10:10
Jacob Wieland - Spirent 
Gyorgy Rethy 
normalminorhave not tried
closedfixed 
v4.8.1 (published 2016-07) 
v4.9.1 (published 2017-05)v4.9.1 (published 2017-05) 
27.1.2
Spirent - Jacob Wieland
0007459: the overwriting rules for attributes and the examples should be written more consistent
There seems to be some confusion in the standard concerning the overwriting rules for attributes.

Especially the meaning of overriding the attribute in a lower scope is either not clear or it is not followed correctly in the EXAMPLE in 27.1.2.1 where MyType already has an encoding rule given by its surrounding module scope and no override is used to change that (though it is claimed to be changed by the parent encoding rule of the type MyPDUtwo in MyVariantsTwo.

The consensus in the STF is that the current intended (and probably implemented by most tools) meaning is this:

If a referenced type already has an encoding attached to it at the place of its definition (either by inheritance from its scope or direct annotation), that encoding 'wins' unless an encode attribute with override is inherited from the referencing definition's scope.

The text in the standard should be simplified/clarified in this regards and more (and correct) examples should be given to illustrate the different scenarios.

Still open questions are:

What is the meaning of encode/variant attributes on import statements?
No tags attached.
related to 0007448closed Gyorgy Rethy Allowing multiple encodings for TTCN-3 types 
Issue History
22-07-2016 14:44Jacob Wieland - SpirentNew Issue
15-08-2016 11:26Jens GrabowskiAssigned To => Tomas Urban
15-08-2016 11:26Jens GrabowskiStatusnew => assigned
17-08-2016 11:24Jacob Wieland - SpirentProjectTTCN-3 Change Requests => Part 01: TTCN-3 Core Language
17-08-2016 11:24Jacob Wieland - SpirentProduct Version => v4.8.1 (published 2016-07)
17-08-2016 11:24Jacob Wieland - SpirentTarget Version => v4.9.1 (published 2017-05)
18-08-2016 09:49Tomas UrbanRelationship addedrelated to 0007448
18-08-2016 09:58Tomas UrbanNote Added: 0014151
18-08-2016 09:58Tomas UrbanAssigned ToTomas Urban => Jacob Wieland - Spirent
18-08-2016 09:58Tomas UrbanStatusassigned => confirmed
18-08-2016 15:30Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Kristóf Szabados
18-08-2016 15:30Jacob Wieland - SpirentStatusconfirmed => assigned
18-08-2016 15:30Jacob Wieland - SpirentStatusassigned => confirmed
19-08-2016 13:35Kristóf SzabadosAssigned ToKristóf Szabados => Jacob Wieland - Spirent
19-08-2016 13:35Kristóf SzabadosStatusconfirmed => assigned
19-08-2016 15:00Jacob Wieland - SpirentNote Added: 0014185
19-08-2016 15:00Jacob Wieland - SpirentStatusassigned => confirmed
17-11-2016 10:00Jacob Wieland - SpirentNote Added: 0014292
17-11-2016 10:00Jacob Wieland - SpirentStatusconfirmed => resolved
17-11-2016 10:00Jacob Wieland - SpirentFixed in Version => v4.9.1 (published 2017-05)
17-11-2016 10:00Jacob Wieland - SpirentResolutionopen => fixed
17-11-2016 10:00Jacob Wieland - SpirentAssigned ToJacob Wieland - Spirent => Gyorgy Rethy
12-12-2016 10:10Gyorgy RethyNote Added: 0014372
12-12-2016 10:10Gyorgy RethyStatusresolved => closed

Notes
(0014151)
Tomas Urban   
18-08-2016 09:58   
The issue has been addressed in 0007448 as a part of a complex change of attribute handling. Several modifications related to this CR have been made:

1. New rules for precedence of attributes (from strongest to lowest): direct use, inherited from a referenced type, inherited from a scope
2. New rule for import where import clause works as an additional scope unit lying between the importing and imported module. The attributes set this way are valid within the importing module only
3. Corrections in the mentioned example

Please check the proposed solution in the related CR.
(0014185)
Jacob Wieland - Spirent   
19-08-2016 15:00   
please review
(0014292)
Jacob Wieland - Spirent   
17-11-2016 10:00   
I have reviewed the text in the documents in the related CR and it was fine.
(0014372)
Gyorgy Rethy   
12-12-2016 10:10   
See CR 7448