Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357096 - Incorrect type generated for an Interface function that returns a String
Summary: Incorrect type generated for an Interface function that returns a String
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 10:30 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:14 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 Brian Svihovec CLA 2011-09-08 10:30:41 EDT
Follow the instructions in Bug 357093 to create a new project and import the attached test files.

In the generated file for test.js, the Call statement is generated into:

egl.eglx.rest.invokeEglService(egl.eglx.rest.configHttp(svc,
					{uri : "", method : egl.eglx.http.HttpMethod.POST, encoding : egl.eglx.services.Encoding.JSON, charset : "UTF-8", contentType : null},
					{encoding : egl.eglx.services.Encoding.JSON, charset : "UTF-8", contentType : null}),
					"amortize",
					[eze$Temp1, eze$Temp2, eze$Temp3],
					["egl.lang.EString", "egl.lang.EString", "egl.lang.EString"],
					["loanAmt", "interestRate", "termInYears"],
					[egl.lang.EString],
					new egl.egl.jsrt.Delegate(this, egl.client.test.prototype.handleResponse), egl.eglx.services.ServiceLib.serviceExceptionHandler);
			;

When you run this application, you get a runtime error stating that the package 'egl.lang' does not exist.  It appears that the return type of [egl.lang.EString] needs to be [egl.egl.lang.EString].
Comment 1 Joseph Vincens CLA 2011-09-08 16:43:25 EDT
This was a workspace problem