Summary: | Executing run() in a scrapbook page leads to a NPE | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | eric_jodet | ||||
Version: | 3.3 | ||||||
Target Milestone: | 3.3 M7 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2007-03-22 14:49:51 EDT
The type of the delegateThis field binding is null. If I explicitely use "this", I get: Cannot use this in a static context so this.run() works fine, but we don't report the error properly in case the implicit 'this' is used. Created attachment 61817 [details]
Proposed fix
This patch will report an error for accessing this in a static context if the delegateThis field cannot be resolved.
Released for 3.3M7 Verified for 3.3 M7 using build I20070427-0010. |