Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359301 - Exception when generating a basic handler
Summary: Exception when generating a basic handler
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 16:23 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:16 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 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.