Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354284 - Setting exception record's message field gets validaiton error about compatible types
Summary: Setting exception record's message field gets validaiton error about compatib...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 14:11 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

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