Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340753 - Generated registerPackages method in generator doesn't compile in M6
Summary: Generated registerPackages method in generator doesn't compile in M6
Status: CLOSED DUPLICATE of bug 340086
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-23 09:17 EDT by Nicolas Bros CLA
Modified: 2011-03-28 04:46 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2011-03-23 09:17:46 EDT
Since 3.1.0 M6, Acceleo generates a generator class for a module that has this line in the registerPackages method:

resourceSet.getPackageRegistry().put(org.eclipse.emf.ecore.impl.EPackageImpl.eINSTANCE.getNsURI(), org.eclipse.emf.ecore.impl.EPackageImpl.eINSTANCE);

It doesn't compile because the field EPackageImpl#eINSTANCE cannot be found.

This happens when the following module is compiled by Acceleo:
svn+ssh://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco/plugins/trunk/org.eclipse.modisco.jee.jsp.generation/src/org/eclipse/modisco/jee/jsp/generation/files/GenerateJsp.mtl

With:
Eclipse SDK
Version: 3.7.0
Build id: I20110310-1119
Acceleo SDK 3.1.0.v20110315-1014
Comment 1 Stephane Begaudeau CLA 2011-03-23 10:20:28 EDT
This bug has already been fixed.

A new build (Acceleo 3.1M6a) will soon be available.

*** This bug has been marked as a duplicate of bug 340086 ***
Comment 2 Laurent Goubet CLA 2011-03-23 10:27:12 EDT
Acceleo 3.1.0M6a is now available from the milestones update site.
Comment 3 Laurent Goubet CLA 2011-03-23 11:06:31 EDT
Didn't mean to reopen along with my last comment

*** This bug has been marked as a duplicate of bug 340086 ***
Comment 4 Nicolas Bros CLA 2011-03-28 04:46:50 EDT
I tested again with Acceleo 3.1M6a, and it now compiles properly.
Thanks!