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 223366

Summary: Add fixable hint: "add interface to target class"
Product: java Reporter: markiewb
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Showing the requested hint in action

Description markiewb 2012-12-06 07:05:59 UTC
[ JDK VERSION : 1.7.0_09 ]

Use the following code
<code>
public class Installer extends ModuleInstall {

    @Override
    public void restored() {
         EditorRegistry.addPropertyChangeListener(this);
    }
}
</code>

ACTUAL: no hint available, error because this does not implement the 
required interface

EXPECTED: a fixable hint which adds the required interface (or a 
subinterface as a choice) to the target class.

Result as an example: 
<code>
public class Installer extends ModuleInstall implements 
PropertyChangeListener{

    @Override
    public void restored() {
         EditorRegistry.addPropertyChangeListener(this);
    }
}
</code>
Comment 1 markiewb 2012-12-06 07:06:43 UTC
Created attachment 128932 [details]
Showing the requested hint in action
Comment 2 markiewb 2012-12-28 22:44:51 UTC

*** This bug has been marked as a duplicate of bug 88461 ***