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

Bug 357096

Summary: Incorrect type generated for an Interface function that returns a String
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jvincens
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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