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 171291 - AssertionError at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames
Summary: AssertionError at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ dcaoyuan
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-01 22:55 UTC by witstart
Modified: 2009-09-02 20:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151761


Attachments
stacktrace (1.86 KB, text/plain)
2009-09-01 22:55 UTC, witstart
Details
stacktrace (1.86 KB, text/plain)
2009-09-02 20:44 UTC, witstart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description witstart 2009-09-01 22:55:47 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.8, x86_64

User Comments:
GUEST: Trying to code complete method name when writing an override def.

In other words I typed "override def to" and then hit Ctrl-Space to see what methods starting with  "to" that I could override.

witstart: Ctrl-Space on a scala keyword

GUEST: Code completion should work, right?



Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames(ScalaElement.java:342)
        at org.netbeans.modules.scala.editing.ScalaCompletionProposal$FunctionProposal.getLhsHtml(ScalaCompletionProposal.java:243)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getLeftHtmlText(GsfCompletionItem.java:171)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.getPreferredWidth(GsfCompletionItem.java:498)
        at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.getPreferredSize(CompletionJList.java:325)
        at org.netbeans.modules.editor.completion.CompletionJList.setData(CompletionJList.java:160)
Comment 1 witstart 2009-09-01 22:55:52 UTC
Created attachment 86944 [details]
stacktrace
Comment 2 witstart 2009-09-02 20:44:14 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.8, x86_64

User Comments: 
expanding a variable name with Ctrl-Space

Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames(ScalaElement.java:342)
        at org.netbeans.modules.scala.editing.ScalaCompletionProposal$FunctionProposal.getLhsHtml(ScalaCompletionProposal.java:243)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getLeftHtmlText(GsfCompletionItem.java:171)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.getPreferredWidth(GsfCompletionItem.java:498)
        at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.getPreferredSize(CompletionJList.java:325)
        at org.netbeans.modules.editor.completion.CompletionJList.setData(CompletionJList.java:160)
Comment 3 witstart 2009-09-02 20:44:18 UTC
Created attachment 87005 [details]
stacktrace