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 149795 - AssertionError at org.netbeans.modules.javascript.editing.VariableVisitor.getVarOccurrences
Summary: AssertionError at org.netbeans.modules.javascript.editing.VariableVisitor.get...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 18:03 UTC by Tomas Mysik
Modified: 2009-02-27 14:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 113829


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2008-10-10 18:03:01 UTC
I tried to CTRL+click on a JS function.
18 duplicates so far, look at the exception report URL for more user comments. Thanks.

Build: NetBeans IDE Dev (Build 200809150201)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86
User comments: Editing a javascript file and saved it.
STACKTRACE: (first 10 lines)
java.lang.AssertionError
        at org.netbeans.modules.javascript.editing.VariableVisitor.getVarOccurrences(VariableVisitor.java:437)
        at org.netbeans.modules.javascript.editing.JsDeclarationFinder.findDeclaration(JsDeclarationFinder.java:249)
        at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport$1.run(GoToSupport.java:151)
        at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport$1.run(GoToSupport.java:129)
        at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:481)
        at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport.perform(GoToSupport.java:125)
        at org.netbeans.modules.gsfret.editor.hyperlink.GoToSupport.getGoToElementTooltip(GoToSupport.java:92)
        at 
org.netbeans.modules.gsfret.editor.hyperlink.GsfHyperlinkProvider.getTooltipText(GsfHyperlinkProvider.java:82)
        at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$TooltipResolver.getValue(HyperlinkOperation.java:433)
        at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$TooltipResolver.getValue(HyperlinkOperation.java:420)
Comment 1 Torbjorn Norbye 2008-10-10 19:55:51 UTC
Fixed in 6.5 (lots of duplicates, low risk fix, and happens during tooltip computation which can make the bug seem random).

Changeset 44b479a62834.