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

Bug 360573

Summary: decimal without precision is not allowed on service/interface method as parameter
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Joseph Vincens <jvincens>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: greer, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.