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 - code completion in writing method adds code inder current method
Summary: code completion in writing method adds code inder current method
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 84342
  Show dependency tree
 
Reported: 2006-09-18 13:27 UTC by Tomas Danek
Modified: 2006-12-14 15:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.