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

Bug 363161

Summary: Confused by validation msg: The types string[] and string[] are not reference compatible
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Eunit library none

Description Kathy Carroll CLA 2011-11-08 07:01:12 EST
Created attachment 206581 [details]
Eunit library

Multiple markers at this line
	- IWN.VAL.6716.e 12/19 facsINOUTd - The argument ["flup","flap"] cannot be passed to the inOut or Out parameter cas of the function facsINOUT. The types string[] and string[] are not reference compatible. At line 12 in file \Isolate\EGLSource\mine
	 \same.egl
	- IWN.VAL.6716.e 12/19 same - The argument ["flup","flap"] cannot be passed to the inOut or Out parameter cas of the function facsINOUT. The types string[] and string[] are not reference compatible. At line 12 in file \Isolate\EGLSource\mine\same.egl

I've attached the eunit file that gets the validation message.  They appear to be of the same type to me.  Is the issue that an array literal is being passed?
Comment 1 Paul Harmon CLA 2011-11-08 08:16:32 EST
I have updated TypeCompatibilityUtil to allow the literal array to be passed to the inout parm. I'm sure there is some good reason why the validation code treats array literals as value types, but I am not sure what it is at this time.
Comment 2 Kathy Carroll CLA 2011-11-11 13:39:09 EST
Validation changes make this testcase invalid.  Verfied with 20111111_0901 and closed