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 200589

Summary: @Override annotation should have a quick hint to create the method to the interface
Product: java Reporter: ZeroOne01
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3 Keywords: UI, USABILITY
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Here I'd like to see an option to create this method into the interface that this class implements

Description ZeroOne01 2011-08-02 09:16:53 UTC
Created attachment 109742 [details]
Here I'd like to see an option to create this method into the interface that this class implements

I often start writing new methods directly into the class that implements them instead of the interface that describes the class. Now, if I write a method signature into the interface, the class has a quick hint "Implement all abstract methods" or something along those lines. I find this should work the other way around as well: if you write the @Override annotation for a method that is not present in the interface, the quick hint should offer to create that method there. If there are multiple interfaces or super classes the quick hint should of course offer a list from where you could select the correct class or interface.