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

Summary: Fixable hint for "invalid method declaration; return type required"
Product: java Reporter: markiewb
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Current state, but missing the hint "add return type void"

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