Summary: | Unexpected 'Cannot make a static reference to the non-static function x(any) from the type Y' | ||||||
---|---|---|---|---|---|---|---|
Product: | [WebTools] JSDT | Reporter: | Robin <robinpelgrim> | ||||
Component: | General | Assignee: | Chris Jaun <cmjaun> | ||||
Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
Severity: | normal | ||||||
Priority: | P3 | Keywords: | contributed | ||||
Version: | 3.0.4 | Flags: | thatnitind:
review+
|
||||
Target Milestone: | 3.0.5 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Robin
2009-03-11 05:02:24 EDT
Hi Robin, I can't reproduce this problem in 3.0.4 or 3.1 with the code snippet you provided. Was there anything else in the file? Were there other JS files in the project? Were you using the JS editor or were you inside an html/jsp page? I found out what is causing the error. It's caused by including the IE Support Library. Probably conflicting with JavaScript Language (ECMA-262) Library That saying I think that String.prototype.fromCharCode=function(args){}; //IE is declared wrong, it should be: String.fromCharCode=function(chars){}; //ECMA Created attachment 128614 [details]
Updates the library file
Should be fixed in 3.0.4 and 3.1. Thanks for pointing me to the problem with the library file Robin. Applied to 3.1m7 Applied to 3.0.5. Thanks, Chris. |