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 - Report methods that have class name - plugin available
Summary: Report methods that have class name - plugin available
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2012-05-18 11:46 UTC by js-java
Modified: 2016-07-01 17:57 UTC (History)
1 user (show)

See Also:
Exception Reporter:


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

Comment 1 markiewb 2014-05-14 17:35:14 UTC
FYI: the plugin version 1.2.0 provides the requested hint/quickfix

So set the prio to P4