Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359189 - "returning to" statement got the wrong param counting compilation for callback function
Summary: "returning to" statement got the wrong param counting compilation for callbac...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 04:14 EDT by Xin Wu CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Wu CLA 2011-09-28 04:14:41 EDT
Build Identifier: 20110927 nightly build

This happens in service call, if the service contains a parameter. The "returning to" statement got the wrong param counting compilation. And will show compile error.

Reproducible: Always

Steps to Reproduce:
1. Create Web Client with Service Project
2. Create service with param and return type

    function echo(str string) returns(string)
		return("hello" + str);
    end

3. Config the service deployment and resource binding correctly.
4. Create RUIHandle, add call statement and callback function

    function Button1_onClick(event Event in)
    	call srv.echo("name") returning to CallBack;
    end
    
    function CallBack(str string in)
    	TextField.text = str;
    end

5. The "returning to" got compilation error as follow

IWN.VAL.3396.e 29/41 h1 - The "returning to" or "onexception" function CallBack requires 2 parameter(s). At line 29 in file \test\EGLSource\client\h1.egl

6. The code is right with one parameter, and there should not be a compilation error.
Comment 1 Xin Wu CLA 2011-09-28 05:01:13 EDT
service param should add "in" statement