Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361568 - Unexpected behavior with case statement using Any/Number in/inout parameter
Summary: Unexpected behavior with case statement using Any/Number in/inout parameter
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 11:38 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:15 EST (History)
2 users (show)

See Also:


Attachments
Eunit test file (5.54 KB, application/octet-stream)
2011-10-20 11:38 EDT, Kathy Carroll CLA
no flags Details
Fix for number type argument (6.02 KB, patch)
2011-10-25 05:33 EDT, Huang Ji Yong CLA
lasher: iplog+
Details | Diff
Fix for any type argument (3.04 KB, patch)
2011-11-04 04:37 EDT, Huang Ji Yong CLA
lasher: iplog+
Details | Diff

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