This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | ClassCastException: org.netbeans.modules.javascript2.editor.model.impl.JsObjectImpl cannot be cast to org.netbeans.modules.javascript2.editor.model.DeclarationScope | ||
---|---|---|---|
Product: | javascript | Reporter: | spookee |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | al_shopov, bobo_of_id, deep_pl, KhArtNJava, mmirilovic, phejl, pjiricka, vriha |
Priority: | P2 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 197143 |
Attachments: | stacktrace |
Description
spookee
2013-01-22 16:32:19 UTC
Created attachment 130496 [details]
stacktrace
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=197143 22 dups in 3 weeks, please evaluate ASAP Reporters can you provide a js file where this is reproducible? This has been introduced in fix for issue #224215. The file, where we can reproduce it, would be very helpful. I'm going to fix it without the reproducible case, but it would be better to have it. It is interesting how it is possible that the global object in our model is not a function. Simple fix is committed in the web-main. http://hg.netbeans.org/web-main/rev/4d6743222872 Petr Hejl, could you please review the fix? It's simple. The types are not resolved, when global object is not a DeclarationScope. Still it would be nice to have the reproducible test case. The fix seems to be ok and safe. I tried some simple editing in more complex JS file, code completion, go to sources, refactoring etc. seems OK, no issue found + fix looks safe => verified in trunk Product Version: NetBeans IDE Dev (Build web-main-9758-on-20130128) Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb) The patch was tranplanted to the releases. http://hg.netbeans.org/releases/rev/1a5961f05895 Unable to reproduce in RC2 => verified Product Version: NetBeans IDE 7.3 RC2 (Build 201302032200) Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb) |