Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356879 - Generation error when service return type is number
Summary: Generation error when service return type is number
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-06 23:09 EDT by Xin Wu CLA
Modified: 2017-02-23 14:20 EST (History)
2 users (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-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