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 212696

Summary: Report methods that have class name - plugin available
Product: java Reporter: js-java
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P4    
Version: 7.1.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description js-java 2012-05-18 11:46:12 UTC
Story: after 30 minutes searching why NetBeans reports that it can not find a matching constructor your a class I found the issue and now I am hoping for a new feature.

I wrote "void" before one of the constructors. I think I'm not the first one who did this when writing many lines of code.

So a warning in NetBeans editor "this method name is same as class name" would have helped me. Typically nobody would have a method that has the same name as the class itself, only as a result of a typo.

class Foobar {
  public Foobar(int value) {....}
  public void Foobar(int v1, int v2) {....}         <--- here NetBeans editor should warn

Thanks!
Comment 1 markiewb 2014-05-14 17:35:14 UTC
FYI: the plugin http://plugins.netbeans.org/plugin/47589/additional-hints version 1.2.0 provides the requested hint/quickfix

So set the prio to P4