Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359856 - Expecting validation msg when pass integer literal or integer variable to an any function parameter
Summary: Expecting validation msg when pass integer literal or integer variable to an ...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 11:21 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments
Program (1.98 KB, application/octet-stream)
2011-10-04 11:25 EDT, Kathy Carroll CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-10-04 11:21:52 EDT
I expect all the three of the test* functions to have validation errors due to the integer and any not having the same reference type.

See attached program file
Comment 1 Kathy Carroll CLA 2011-10-04 11:25:07 EDT
Created attachment 204517 [details]
Program
Comment 2 Kathy Carroll CLA 2011-10-04 14:00:37 EDT
Curious should EDT be issuing 

IWN.VAL.4949.e 7/37 IN modifier is not allowed to be specified with NUMBER or any of the loose primitive types.

like RBD for

	function switchOnInNumberParameter(localLen number in)
	end

Wouldn't the same message apply for ANY parameters?
Comment 3 Paul Harmon CLA 2011-10-13 14:08:36 EDT
The rule in EDT is that everything should be reference compatible with ANY and ANY should be reference compatible with everything.

I have actually loosened validation to eliminate the 1 validation error that was being thrown for this testcase.

The change has been checked into TypeCompatibilityUtil
Comment 4 Kathy Carroll CLA 2011-10-20 11:22:42 EDT
Verified with build 201110200901 & closed.