ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0005937 | Part 01: TTCN-3 Core Language | New Feature | public | 28-09-2011 13:46 | 29-11-2011 11:24

Reporter | Jacob Wieland - Spirent |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.4.1 (published 2012-04) | Fixed in Version | v4.4.1 (published 2012-04) |
Clause Reference(s) | Clause 27
Source (company - Author) | Testing Technologies - Jacob Wieland

Summary | 0005937: Generalize annotation of attributes to declarations/members.

Description

1. It should be possible to add a with-block also for local declarations (i.e. var/const/template/timer/port). Actually, the standard text does not disallow this. There is no mention where the with-statement can actually be placed (except in the BNF).
2. It should be allowed also for component type declarations to add annotations referencing the members of the component type. Although this can be solved as well with 1. the possibility of referencing multiple members in one annotation saves the user from unnecessary repetition). I also think that the standard already implies that this should already be possible:
Clause 27.2. Restriction a)
"DefinitionRef and FieldReference must refer to a definition or field respectively which is within the module, group or definition to which the with statement is associated."

Steps To Reproduce |
Additional Information |
Tags | No tags attached.

Relationships

related to | 0005966 | closed | Gyorgy Rethy | Invalid syntax in 6.2 example 5

Attached Files | CR5937-proposal.doc (687,616) 29-09-2011 15:28 http://oldforge.etsi.org/mantis/file_download.php?file_id=2577&type=bug

Issue History
Date Modified | Username | Field | Change
28-09-2011 13:46 | Jacob Wieland - Spirent | New Issue |
28-09-2011 13:46 | Jacob Wieland - Spirent | Clause Reference(s) | => Clause 27
28-09-2011 13:46 | Jacob Wieland - Spirent | Source (company - Author) | => Testing Technologies - Jacob Wieland
28-09-2011 14:07 | Gyorgy Rethy | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
28-09-2011 14:29 | Gyorgy Rethy | Note Added: 0010277 |
28-09-2011 14:29 | Gyorgy Rethy | Assigned To | => Jacob Wieland - Spirent
28-09-2011 14:29 | Gyorgy Rethy | Status | new => assigned
28-09-2011 14:29 | Gyorgy Rethy | Target Version | => Edition 4.4.1
29-09-2011 11:04 | Gyorgy Rethy | Note Edited: 0010277 |
29-09-2011 15:28 | Jacob Wieland - Spirent | File Added: CR5937-proposal.doc |
29-09-2011 15:32 | Jacob Wieland - Spirent | Note Added: 0010301 |
29-09-2011 15:32 | Jacob Wieland - Spirent | Relationship added | related to 0005923
29-09-2011 15:34 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Ina Schieferdecker
29-11-2011 11:04 | Ina Schieferdecker | Relationship added | related to 0005966
29-11-2011 11:22 | Ina Schieferdecker | Note Added: 0010382 |
29-11-2011 11:23 | Ina Schieferdecker | Status | assigned => resolved
29-11-2011 11:23 | Ina Schieferdecker | Resolution | open => fixed
29-11-2011 11:23 | Ina Schieferdecker | Fixed in Version | => Edition 4.4.1
29-11-2011 11:23 | Ina Schieferdecker | Status | resolved => closed
29-11-2011 11:24 | Ina Schieferdecker | Note Added: 0010383 |
29-11-2011 15:52 | Ina Schieferdecker | Relationship deleted | related to 0005923

Notes

(0010277)
Gyorgy Rethy
28-09-2011 14:29 (edited on: 29-09-2011 11:04)

STF discussion 2011-09-29: Basically agreed. The feaute should not complicate the use of attributes. Check possible tricky cases, overriding rules, rules when importing declarations with attributes attached to local definitions etc.

(0010301)
Jacob Wieland - Spirent
29-09-2011 15:32

please review proposal. Maybe WithStatement should also be allowed for port-type local declarations. If so, this needs to be taken into account for CR 5923. Other possible candidates are inline templates (i.e. TemplateBody) and parameter declarations (although these can already be annotated using the with statement with member-ref, I guess).

(0010382)
Ina Schieferdecker
29-11-2011 11:22

Changed to "A with statement may associate attributes to a single language element or to elements or fields of structured types (in a recursive way) or to members of component or port types, the same way ..." Note added to 27.1.3 BNF changes as in CR5966

(0010383)
Ina Schieferdecker
29-11-2011 11:24

CR5966 yet to be implemented.