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.

Bug 207051 - ClassCastException: org.mozilla.nb.javascript.Node cannot be cast to org.mozilla.nb.javascript.Node$StringNode
Summary: ClassCastException: org.mozilla.nb.javascript.Node cannot be cast to org.mozi...
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 08:29 UTC by CepO
Modified: 2012-09-10 06:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 184249


Attachments
stacktrace (4.44 KB, text/plain)
2012-01-09 08:29 UTC, CepO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CepO 2012-01-09 08:29:24 UTC
This bug was originally marked as duplicate of bug 158751, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP

Stacktrace: 
java.lang.ClassCastException: org.mozilla.nb.javascript.Node cannot be cast to org.mozilla.nb.javascript.Node$StringNode
   at org.mozilla.nb.javascript.Node.getString(Node.java:804)
   at org.netbeans.modules.javascript.editing.JsAnalyzer$AnalysisResult.processImports(JsAnalyzer.java:807)
   at org.netbeans.modules.javascript.editing.JsAnalyzer$AnalysisResult.visit(JsAnalyzer.java:413)
   at org.netbeans.modules.javascript.editing.ParseTreeWalker.walk(ParseTreeWalker.java:80)
   at org.netbeans.modules.javascript.editing.ParseTreeWalker.walk(ParseTreeWalker.java:85)
   at org.netbeans.modules.javascript.editing.ParseTreeWalker.walk(ParseTreeWalker.java:85)
Comment 1 CepO 2012-01-09 08:29:26 UTC
Created attachment 114724 [details]
stacktrace
Comment 2 Petr Hejl 2012-09-10 06:49:46 UTC
This code wont' be used in 7.3.