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 85869

Summary: Consume semicolon typed inside method parameter
Product: java Reporter: Max Sauer <msauer>
Component: SourceAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: screenshot

Description Max Sauer 2006-09-27 13:02:53 UTC
When using code completion to supply a method with only one possible parameter,
the method is pasted inside souce, with a param selected in blue, so a user can
easily overwrite it with desired value/variable. Semicolon is also provided at
the end of the line.

However, me being accustomed to old editor, I usually press semicolon to type it
and get to the end of the line, which results in an inappropriate semicolon. 

See attached screenshot.

Steps to reproduce:
-------------------
1) Open a java file
2) Type
  Math.ex| //pipe stands for carret
and invoke CC
3) Choose "exp(..)"
4) Type ie: "2.1" and ";"
--> The semicolon is inside parenthisis -- could we consume it and jump to the
end of the line?

---
NetBeans IDE Dev (Build 060927)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b99
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
NetBeans-dev-060927
Comment 1 Max Sauer 2006-09-27 13:03:21 UTC
Created attachment 34578 [details]
screenshot