Community
Participate
Working Groups
function fromCharCode(charCode) { return String.fromCharCode(charCode); // Error marker } results in 'Cannot make a static reference to the non-static function fromCharCode(any) from the type String'
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.