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

Bug 316394

Summary: Error when generating an acceleo module file as Java wrapper
Product: [Modeling] Acceleo Reporter: Daniel <nasgun>
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 7   
Whiteboard:

Description Daniel CLA 2010-06-09 17:58:48 EDT
When generating the java wrapper for:



public Classifier[] hasName(import org.eclipse.uml2.uml.Classifier){}

It generates:

[query public hasName(arg0 : Classifier) : Classifier;
	= invoke('org.acceleo.module.pim.uml21.gen.java.services.Service', 'hasName(org.eclipse.uml2.uml.Classifier)', Sequence{arg0}) /]	

And it should be:

[query public hasName(arg0 : Classifier) : Classifier
	= invoke('org.acceleo.module.pim.uml21.gen.java.services.Service', 'hasName(org.eclipse.uml2.uml.Classifier)', Sequence{arg0}) /]	

Without the ";" character after "Classifier".
Comment 1 Daniel CLA 2010-06-10 03:24:10 EDT
*** Bug 316393 has been marked as a duplicate of this bug. ***
Comment 2 Stephane Begaudeau CLA 2011-04-29 09:32:56 EDT
The fix as been contributed on HEAD. It will be available in Acceleo 3.1.0M7 next week.