Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363968 - Exception on mathLib.precision
Summary: Exception on mathLib.precision
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-11-16 15:14 EST by broy2 CLA
Modified: 2017-02-23 14:20 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.