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

Bug 355979

Summary: NoSuchFunctionError when generating a case statement for SignKind
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Svihovec CLA 2011-08-26 16:17:37 EDT
Create a program named P3 and add the source below.  The following exception is thrown when the part is being generated:

Caused by: org.eclipse.edt.mof.egl.NoSuchFunctionError
	at org.eclipse.edt.mof.egl.impl.BinaryExpressionImpl.resolveOperation(BinaryExpressionImpl.java:61)
	at org.eclipse.edt.mof.egl.impl.MultiOperandExpressionImpl.getOperation(MultiOperandExpressionImpl.java:43)
	... 91 more

Source:

program P3 type BasicProgram {}
	function main()
		sign SignKind;
		case (sign)
			when(SignKind.leading)
		end
	end
	
end
Comment 1 Paul Harmon CLA 2011-09-13 14:32:56 EDT
I have fixed this by making Enumerations have a supertype of EGLAny. This required changes to Enumeration and EnumerationImpl.
Comment 2 Lisa Lasher CLA 2011-11-09 14:16:56 EST
This defect was fixed at least 2 months ago, so I am closing.