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

Bug 359189

Summary: "returning to" statement got the wrong param counting compilation for callback function
Product: z_Archived Reporter: Xin Wu <cdlwuxin>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: cdlwuxin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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