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.
Summary: | Invalid "new" item in code completion in New Watches dialog | ||
---|---|---|---|
Product: | debugger | Reporter: | Jiri Kovalsky <jkovalsky> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Screenshot of code completion suggesting "this.new" in "New Watch" dialog. |
This behavior is O.K. Go to Anagrams() constructor, enter a new line, write "this." and see the code-completion. The last item is "new". It's legal to write "this.new <name of an inner class>()" I see. Verified. |
Created attachment 102909 [details] Screenshot of code completion suggesting "this.new" in "New Watch" dialog. Product Version: NetBeans IDE 7.0 Beta (Build 201011110000) Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03 System: Linux version 2.6.31-22-generic running on i386; UTF-8; en_US (nb) Userdir: /home/cesilko/.netbeans/7.0beta Description: ============ For some reason "new" Java keyword is incorrectly suggested in code completion when creating new watch. See attached screenshot. Steps to reproduce: =================== 1. Create new Anagram Game sample project. 2. Invoke "New > Debug" item from main menu. 3. Type "this." into the "New Watch" dialog and wait till code completion shows up. 4. Scroll down until "new" suggestion appears.