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

Bug 353027

Summary: Function invocation in handlers produces an exception
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Scott Greer <greer>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joseph Vincens CLA 2011-07-25 14:16:18 EDT
ReferenceError: testF2 is not defined
    at [object Object].start (file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/generatedJavaScript/handlers/Handler1.js:14:4)
    at new <anonymous> (file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/generatedJavaScript/handlers/Handler1.js:7:9)
    at [object Object].eze$$thisClass (file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/WebContent/runtime/egl.js:876:27)
    at file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/WebContent/Handler1.html:68:22
    at Function.loadScripts (file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/WebContent/Handler1.html:38:3)
    at file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/WebContent/Handler1.html:36:38
    at HTMLScriptElement.<anonymous> (file:///home/jvincens/eclipse/rbdDev/EDT07-4/ServiceTest/WebContent/Handler1.html:24:4)

handler Handler1 type RUIhandler {initialUI = [ ],onConstructionFunction = start, cssFile="css/ServiceTest.css", title="Handler1"}
	
	function start()
		writestdout("in start");
		testF2();
	end

	function testF2()
	end
end
Comment 1 Scott Greer CLA 2011-08-04 20:59:45 EDT
Fixed by https://bugs.eclipse.org/bugs/show_bug.cgi?id=353223
Comment 2 Joseph Vincens CLA 2011-08-04 21:31:06 EDT
it's now working