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

Bug 355250

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

Description Brian Svihovec CLA 2011-08-19 14:02:03 EDT
* Create a file named DelegateTest.egl.
* Add the following EGL Code:

program DelegateTest type BasicProgram {}

	retrieveValidStateHelper MVCValidStateRetriever {};
	
	
	function main()
		if(this.retrieveValidStateHelper != null)
		end
	end
	
end

Delegate
	MVCValidStateRetriever() returns(String?)
end

* When you save and generate the file, the following message is displayed:

- IWN.JavaGen.9999.e 11/154 Stack Trace: java.lang.RuntimeException: 
	 org.eclipse.edt.mof.egl.NoSuchFunctionError
	- IWN.JavaGen.9998.e 11/154 Exception occurred: java.lang.RuntimeException: 
	 org.eclipse.edt.mof.egl.NoSuchFunctionError

This appears to be thrown on line 61 of BinaryExpressionImpl.java, due to the fact that IRUtils.getBinaryOperation returns null.
Comment 1 Paul Harmon CLA 2011-08-24 11:11:44 EDT
I have updated the operation resolution code to support Delegates
Comment 2 Lisa Lasher CLA 2011-10-11 16:19:57 EDT
Closing this defect.