Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326899 - Invoke with methods without parameters fails.
Summary: Invoke with methods without parameters fails.
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 04:46 EDT by Stephane Begaudeau CLA
Modified: 2010-10-05 03:40 EDT (History)
0 users

See Also:


Attachments
Patch (9.20 KB, text/plain)
2010-10-04 04:46 EDT, Stephane Begaudeau CLA
no flags Details
Patch v2 (1.47 KB, patch)
2010-10-05 03:40 EDT, Stephane Begaudeau CLA
no flags Details | Diff

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