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 - Add fixable hint: "add interface to target class"
Summary: Add fixable hint: "add interface to target class"
Status: RESOLVED DUPLICATE of bug 88461
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 07:05 UTC by markiewb
Modified: 2012-12-28 22:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Showing the requested hint in action (57.10 KB, image/png)
2012-12-06 07:06 UTC, markiewb
Details

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