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

Bug 340753

Summary: Generated registerPackages method in generator doesn't compile in M6
Product: [Modeling] Acceleo Reporter: Nicolas Bros <nicolas.bros>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet, modisco.web-inbox, stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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!