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

Bug 359301

Summary: Exception when generating a basic handler
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: greer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-09-28 16:23:43 EDT
This basic handler can't be generated.

package x;

handler TestHandler

	i int;

	function sneeze() returns( string )
		return( "Ah-choo!" );
	end
end


java.lang.NullPointerException
	at org.eclipse.edt.gen.javascript.templates.HandlerTemplate.genConstructor(HandlerTemplate.java:70)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:357)
Comment 1 Scott Greer CLA 2011-09-28 17:41:47 EDT
Fixed.
Comment 2 Matt Heitz CLA 2011-10-04 14:35:09 EDT
Verified.