Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355250 - NoSuchFunctionError when generating a Binary Expression with a Delegate
Summary: NoSuchFunctionError when generating a Binary Expression with a Delegate
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-19 14:02 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:15 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 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.