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

Bug 326899

Summary: Invoke with methods without parameters fails.
Product: [Modeling] Acceleo Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch
none
Patch v2 none

Description Stephane Begaudeau CLA 2010-10-04 04:46:21 EDT
Created attachment 180141 [details]
Patch

If we create a class with a method:
public String doSomething() {return "hi"};

And if we try to call that method with an invoke from an Acceleo module the method is not found because without parameters Acceleo tries to invoke the method on the current parameter (like an EClass) instead of invoking the method on the Java object.
Comment 1 Stephane Begaudeau CLA 2010-10-05 03:40:15 EDT
Created attachment 180227 [details]
Patch v2
Comment 2 Stephane Begaudeau CLA 2010-10-05 03:40:37 EDT
Contributed and available in Acceleo 3.0.2 and Acceleo 3.1.0 M3