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

Bug 354284

Summary: Setting exception record's message field gets validaiton error about compatible types
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jqian
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-09 14:11:05 EDT
My EGL library below gets this validation error:

IWN.VAL.6653.e 10/49 LogResults - eglstring and string are not compatible types in the expression message=info. At line 10 in file \FrameworkMini\eglsource\explore\LogResults.egl

package explore;

library LogResults {}

	function assertTrue(info string, flag boolean)
		if (flag)
			syslib.writeStdOut("all good");
		else
			syslib.writeStdOut("going to throw the exception");
			throw new AssertionFailedException{message = info};
		end
	end
	
	function assertTrue2(info string, flag boolean)
		local string = "loc " + info;
		if (flag)
			syslib.writeStdOut("all good");
		else
			syslib.writeStdOut("going to throw the exception");
			oopsy AssertionFailedException;
			oopsy.message = info;
			throw oopsy;
		end
	end
	
end

Record AssertionFailedException type Exception
end
Comment 1 Kathy Carroll CLA 2011-08-15 14:40:51 EDT
no longer get validation messages
Comment 2 Kathy Carroll CLA 2011-08-15 14:41:04 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:00:25 EDT
Closing this defect.