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 85131

Summary: code completion in writing method adds code inder current method
Product: java Reporter: Tomas Danek <musilt2>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 84342    

Description Tomas Danek 2006-09-18 13:27:00 UTC
5.5 200609160000, jdk 1.5

1) create new class
2) i want to override e.g. hashCode(), so i start typing "public int ha"
and press ctrl+Space
3) i accept first item of CC - hashCode() - override
4) method signature is not completed, but new method is generated underneeth.

so editor looks now like:

    public int 

    public int hashCode() {
    }



expected behaviour: "public int ha" is completed to     
"public int hashCode() {
    }"
Comment 1 Tomas Danek 2006-09-18 13:27:44 UTC
-> editor focus test
Comment 2 Dusan Balek 2006-10-28 10:41:17 UTC
Reassigning.
Comment 3 Jan Lahoda 2006-12-14 15:02:47 UTC
Currently, the code completion does not provide override method item in this
context (and this is currently as designed, AFAIK). Changing to enhancement and
passing to Dusan.