Request for integration #225195 - ClassCastException: org.netbeans.modules.javascript2.editor.model.impl.JsObjectImpl cannot be cast to org.netbeans.modules.javascript2.editor.model.DeclarationScope

Petr Pisl <[email protected]> Mon, 28 Jan 2013 15:02:54 +0100
Newsgroups gmane.comp.java.netbeans.reviewers
Message-ID <[email protected]>
Issue #225195: http://netbeans.org/bugzilla/show_bug.cgi?id=225195

Description:
Usually the global object of the javascript model is a function which is 
an instance of DeclarationScope interface. In some cases the global 
object is not DeclarationScope.

Impact assessment:
If the global object is not instance of DeclarationScope, then no types 
are computed from such object.

Risk assessment:
There is no risk. If such situation happen, then there will not be 
exception and such object will be ignored.

Fix:http://hg.netbeans.org/web-main/rev/4d6743222872

Petr Hejl is going to review the fix.

Thanks for the review.
Petr