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

Bug 361568

Summary: Unexpected behavior with case statement using Any/Number in/inout parameter
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Huang Ji Yong <hjiyong>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: hjiyong, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Eunit test file
none
Fix for number type argument
lasher: iplog+
Fix for any type argument lasher: iplog+

Description Kathy Carroll CLA 2011-10-20 11:38:34 EDT
Created attachment 205646 [details]
Eunit test file

Eunit variations indicate the desired behavior.  Related java defect is 358651.
Comment 1 Kathy Carroll CLA 2011-10-20 12:47:27 EDT
Increased severity due to the number of failing variations that could be resolved by this defect.  Resolving 358651 (Java) and 361568 (JS) required before further analysis of lang.express.parameter testcases.
Comment 2 Huang Ji Yong CLA 2011-10-25 05:33:58 EDT
Created attachment 205895 [details]
Fix for number type argument

Scott,
I attach the patch to resolve the number in/out problem. Please review.

The any type still has problem.

I notice 2 differences of EDT and RBD
1. In RBD, we can not set in parameter for number type(primitive type).
2. In RBD, when compare any type variable without as expression to other types will cause generation error.
Are the changes expectable?
Comment 3 Huang Ji Yong CLA 2011-11-04 04:37:15 EDT
Created attachment 206450 [details]
Fix for any type argument
Comment 4 Huang Ji Yong CLA 2011-11-04 04:40:05 EDT
Add genBinaryExpression for AnyType template
Comment 5 Kathy Carroll CLA 2011-11-09 11:48:23 EST
Verified 201111090901 & closed