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 227565 - Fixable hint for "invalid method declaration; return type required"
Summary: Fixable hint for "invalid method declaration; return type required"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 22:28 UTC by markiewb
Modified: 2015-10-05 13:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Current state, but missing the hint "add return type void" (4.44 KB, image/png)
2013-03-16 22:28 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-03-16 22:28:00 UTC
Created attachment 132692 [details]
Current state, but missing the hint "add return type void"

<code>
public class NewClass {
    
    method() { // error in this line
    }
    
}

</code>

ACTUAL: 
* hint "rename method to NewClass" (a.k.a "rename method to create a constructor")

EXPECTED:
* hint "rename method to NewClass" (a.k.a "rename method to create a constructor")
* hint "Add return type void" (which set the return type to void)
Comment 1 markiewb 2013-03-16 22:28:48 UTC
FYI: Similar to http://netbeans.org/bugzilla/show_bug.cgi?id=201739