Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360573 - decimal without precision is not allowed on service/interface method as parameter
Summary: decimal without precision is not allowed on service/interface method as param...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Joseph Vincens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 14:36 EDT by Jing Qian CLA
Modified: 2017-02-23 14:17 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 Jing Qian CLA 2011-10-11 14:36:39 EDT
the following funciton is legal in an EGL library

function decimal_all (p1 decimal out, p2 decimal in, p3 decimal) returns (decimal)
    p1 = 1.1;
    p3 = p3 + 1.1;
    return (p2 + 1.1);
  end	

but the same function is illegal in EGL services, it gives validation error

IWN.val.7803.E 
Loose datatypes are not supported for function parameters in a service or interface.

I spoke with Joe about this, because services transfers data via json/xml, without the definition, he would not know what decimal data type to create, unless he's counting the digits (even that could be inaccurate).

this could be work as designed, or could be fixed, or an enhancement?
Comment 1 Scott Greer CLA 2011-10-14 10:08:04 EDT
Joe,

In what component does this belong, or who should own it -- it's not JS gen....thanks.