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 211758 - Implement all abstract methods hint misbehaving
Summary: Implement all abstract methods hint misbehaving
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-26 07:09 UTC by mienamoo
Modified: 2012-09-25 12:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2012-04-26 07:09:50 UTC
NetBeans build 201204220400
JDK 7u3 32-bit

I realise that the summary is rather vague, but so is the behaviour that I came across quite by accident. :)

I copied the following code snippet from a website into a method in a class:

WindowManager.getDefault().invokeWhenUIReady(new Runnable() {
    public void run() {
    // code to be invoked when system UI is ready
    }
);

This has a syntax error - there is a missing } before ); which I then fixed, and I fixed the imports as well. After this change, the "Implement all abstract methods" kept on appearing, saying that the Runnable does not override run(). Applying the hint adds another copy of run(), but the hint stays and I could create many copies of this method that way.

I removed the extra run() methods and built the module. And then when I clicked away from that piece of code in the editor, the hint finally disappeared.

So it seems that the syntax error caused some confusion. :)
Comment 1 mienamoo 2012-09-25 12:28:44 UTC
This is no longer happening with NetBeans IDE 7.3 Beta (Build 201209232010). So it would seem that this issue was fixed. :)