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

Bug 363968

Summary: Exception on mathLib.precision
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-11-16 15:14:07 EST
Use EUNIT to run:

library precision
    decimal31 decimal(31, 3);
    resultInt int;
    mySmallInt smallInt = -12345;
    myInt int = -345678;
    myBigInt bigInt = -98765;
    mySmallFloat smallFloat = -5.0;
    myFloat float = -999.99;
    function precisionSmallInt(){@Test}
        resultInt = mathLib.precision(mySmallInt);
        LogResult.assertBigIntEqual("precisionSmallInt", 4, resultInt);
    end
    function precisionInt(){@Test}
        resultInt = mathLib.precision(myInt);
        LogResult.assertBigIntEqual("precisionInt", 9, resultInt);
    end
    function precisionBigInt(){@Test}
        resultInt = mathLib.precision(myBigInt);
        LogResult.assertBigIntEqual("precision19", 18, resultInt);
    end
    function precisionFloat(){@Test}
        resultInt = mathLib.precision(myFloat);
        LogResult.assertBigIntEqual("precisionFloat", 15, resultInt);
    end
    function precisionSmallFloat1(){@Test}
        resultInt = mathLib.precision(mySmallFloat);
        LogResult.assertBigIntEqual("precisionSmallFloat", 6, resultInt);
    end
end

When debugging, I see the following exception for each mathLib.precision

eglx.javascript.JavaScriptObjectException x.eze$$signature is undefined

This looks like 362728 but with different types.
Comment 1 broy2 CLA 2011-11-21 15:52:48 EST
Fixed in 20111121 build.
Comment 2 broy2 CLA 2011-11-21 15:53:01 EST
Verified.