Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357119 - JS: Creation of a basic handler throws a runtime TypeError exception
Summary: JS: Creation of a basic handler throws a runtime TypeError exception
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-09-08 12:31 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:15 EST (History)
2 users (show)

See Also:


Attachments
egl project (13.84 KB, application/x-zip-compressed)
2011-09-09 10:05 EDT, Kathy Carroll CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.