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

Bug 364063

Summary: stringLib.format of numeric returns null
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-17 11:50:35 EST
This is part of api.systemTypes.
Use EUnit to run:

library formatSmallInt
    mySmallInt smallInt;
    myString string;
    function formatSmallInt(){@Test}
        mySmallInt = 1005;
        try
            myString = stringLib.format(mySmallInt, "$+***,***");
        onException(oops AnyException)
            LogResult.failed("Exception");
            exit;
        end
        myString = "$+**1,005";
        LogResult.assertStringEqual1("$+**1,005", myString);
    end
end

The format returns null.
It should return $+**1,005.

This is true for all of the numeric types.
smallInt
int
bigInt
decimal
smallFloat
float
Comment 1 broy2 CLA 2011-11-19 10:22:22 EST
*** Bug 363351 has been marked as a duplicate of this bug. ***
Comment 2 broy2 CLA 2011-11-21 16:00:02 EST
Fixed in 20111121 build.
Comment 3 broy2 CLA 2011-11-21 16:00:16 EST
Verified.