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 140935

Summary: [65cat] Duplicate Hint Upon creation of Non Existing Object
Product: java Reporter: rajivderas <rajivderas>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description rajivderas 2008-07-21 05:46:51 UTC
[ BUILD # : 200807170007 ]
[ JDK VERSION : 1.6.0_07 ]

When I try to create a reference of a new Object which is not already
created the Hints pop should display and ask "Create class <clssname>
in  <package>". It shows the hint but is is shown twice in the
editor. 

Ex: 
package netcattest;

/**
 *
 * @author Rajiv Perera
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       NetCat cat = new NetCat(); // This object does not exist and
in     //this line the hint duplicates the same information twice
    }

}
Comment 1 Petr Dvorak 2008-07-22 10:46:29 UTC
Hi rajivderas!

I don't think this is really a defect. I would say it should be an enhancement - the feature currently works (all hints
are given to you) but it can be enhanced so that the hints are unique. I will make a P3 enhancement of this, if you
insist that the current behavior is a defect, please feel free to change it back (but in my opinion this should be
classified rather as an enhancement for above mentioned reason).

With regards,

Petr Dvorak
Comment 2 Jiri Prox 2008-09-19 09:36:46 UTC
*** Issue 147655 has been marked as a duplicate of this issue. ***