Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340812 - Spurious module already imports
Summary: Spurious module already imports
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 16:59 EDT by Ed Willink CLA
Modified: 2011-03-24 09:03 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.