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

Bug 357119

Summary: JS: Creation of a basic handler throws a runtime TypeError exception
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: greer, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
egl project none

Description Kathy Carroll CLA 2011-09-08 12:31:04 EDT
This EGL line of code 
   		trHandler crudeHandler = new crudeHandler;

Causes an TypeError exception.  The message is egl.client.crudeHandler is not a constructor.

I've deployed the attached project and modified the generated HTML (this is in the common package).  And debug using firebug.
Comment 1 Scott Greer CLA 2011-09-08 22:47:59 EDT
Kathy,

Please attach the project you reference in your comments...thanks!
Comment 2 Kathy Carroll CLA 2011-09-09 10:05:50 EDT
Created attachment 203063 [details]
egl project
Comment 3 Brian Svihovec CLA 2011-09-23 09:41:32 EDT
This looks like it will be a duplicate of 357247.  

If you declare a variable at the top of MyHandler of type crudeHandler, does the runtime error go away?
Comment 4 Kathy Carroll CLA 2011-09-23 09:58:48 EDT
Actually the project works now without any modification to the EGL code.  perhaps it was the nullability changes that fixed it
Comment 5 Kathy Carroll CLA 2011-09-23 09:59:02 EDT
verified with 201109230902
Comment 6 Lisa Lasher CLA 2011-10-11 16:30:42 EDT
Closing this defect.