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 191849 - Invalid "new" item in code completion in New Watches dialog
Summary: Invalid "new" item in code completion in New Watches dialog
Status: VERIFIED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 13:47 UTC by Jiri Kovalsky
Modified: 2011-01-09 22:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of code completion suggesting "this.new" in "New Watch" dialog. (54.70 KB, image/png)
2010-11-11 13:47 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2010-11-11 13:47:31 UTC
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.
Comment 1 Martin Entlicher 2010-11-11 14:04:10 UTC
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>()"
Comment 2 Jiri Kovalsky 2011-01-09 22:04:04 UTC
I see. Verified.