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

Bug 340812

Summary: Spurious module already imports
Product: [Modeling] Acceleo Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-03-23 16:59:10 EDT
M6a.

After editing a file that experiences 6 Bug 335761 issues, a file starting

[comment encoding = UTF-8 /]
[module generateOCLstdlib('http://www.eclipse.org/ocl/3.1.0/Pivot','http://www.eclipse.org/emf/2002/Ecore')/]
[import generateOclCommon/]

[template public generate(pkg : Package, javaPackage : String, javaClass : String, sourceFile : String, uri : String) ? (pkg.eContainer() = null)]

gets a "The module already imports 'generateOclCommon'" warning.
Comment 1 Stephane Begaudeau CLA 2011-03-24 09:03:02 EDT
The problem is fixed and the fix has been contributed on HEAD. The same problem also appeared with "the module already extends" (even if Acceleo only takes into account single inheritance), it is also fixed.

Unit tests have been changed to match the fix because now we will be able to detect duplicate imports/duplicate extends earlier.