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

Bug 358233

Summary: enumeration compare doesn't generate the correct code
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joseph Vincens CLA 2011-09-20 08:39:30 EDT
using the following EGL
		e1 ServiceType = ServiceType.EglDedicated;
		if(e1 == ServiceType.EglDedicated)
			syslib.writeStdout("e1 == ServiceType.EglDedicated");
		else
			syslib.writeStdout("e1 != ServiceType.EglDedicated");
		end
generates 
		if ((EglAny.ezeBox(e1) == EglAny.ezeBox(ServiceType.EglDedicated))) {

so the compare is != when it should be ==.
Comment 1 Matt Heitz CLA 2011-09-20 09:03:43 EDT

*** This bug has been marked as a duplicate of bug 358102 ***