Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321308

Summary: Parsing error for duplicate protected areas should be a warning
Product: [Modeling] Acceleo Reporter: Laurent Goubet <laurent.goubet>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch v1.0 mariot.chauvin: iplog+

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