Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321308 - Parsing error for duplicate protected areas should be a warning
Summary: Parsing error for duplicate protected areas should be a warning
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 05:21 EDT by Laurent Goubet CLA
Modified: 2011-10-12 05:21 EDT (History)
1 user (show)

See Also:


Attachments
Patch v1.0 (1.17 KB, patch)
2010-08-10 11:34 EDT, Stephane Begaudeau CLA
mariot.chauvin: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Goubet CLA 2010-07-30 05:21:15 EDT
There are times where the parser cannot really determine whether a protected area's marker is duplicated or not. For example :

[for (c : Class | package.classes)]
  [protected (c.name)]
  [/protected]
[/for]
[for (c : Collaboration | package.collaborations)]
  [protected (c.name)]
  [/protected]
[/for]

is marked as a "duplicate protected area" where it really isn't. Only the runtime checks ( bug 252169 ) will be able to really determine this.
Comment 1 Stephane Begaudeau CLA 2010-08-10 11:34:27 EDT
Created attachment 176248 [details]
Patch v1.0
Comment 2 Stephane Begaudeau CLA 2010-09-13 03:56:22 EDT
Contributed and available in Acceleo 3.1.0 M2