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

Summary: AssertionError at org.netbeans.modules.javascript.editing.VariableVisitor.getVarOccurrences
Product: javascript Reporter: Tomas Mysik <tmysik>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: RESOLVED FIXED    
Severity: blocker CC: axiomsofchoice
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=113829
Issue Type: DEFECT Exception Reporter: 113829

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.