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

Bug 356879

Summary: Generation error when service return type is number
Product: z_Archived Reporter: Xin Wu <cdlwuxin>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cdlwuxin, jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Xin Wu CLA 2011-09-06 23:09:29 EDT
Build Identifier: 20110907 nightly build

Generation error when service return type is number. The generated code convert ESmallint to BigDecimal and got compile error.

Reproducible: Always

Steps to Reproduce:
1. Create EDT service file
2. Add service funtion:
        function returnNumber() returns(number)
		res number = 123;
		return(res);
	end
3. The generated code as follow
	public BigDecimal returnNumber() {
		BigDecimal res = null;
		res = ESmallint.ezeBox((short) 123);  // error
		return res;
	}
Comment 1 Jeff Douglas CLA 2011-09-14 12:32:48 EDT
fixed
Comment 2 Xin Wu CLA 2011-09-30 01:55:03 EDT
verified in 20110929