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 46183 - The "Show Abstract Methods Only" in "Override and Implement Methods" works incorrectly
Summary: The "Show Abstract Methods Only" in "Override and Implement Methods" works in...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
: 44750 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-15 10:21 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The test application. (8.73 KB, application/octet-stream)
2004-07-15 10:23 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-07-15 10:21:56 UTC
NB trunk build 200407131800, JDK1.4.2_05 (tested
on Solaris and Linux).

The "Override and Implement Methods" dialog have a
checkbox "Show Abstract Methods Only". I would
await that when this checkbox is checked, only
unimplemented abstract methods are shown in the
dialog (that means only methods that I have to
implement in order to get a non-abstract class).

But, when this checkbox is check, all methods that
were ever abstract in the respective class
hiearchy are shown, even those that are
implemented (and even if the implementation is
marked as final).

I think that when this checkbox is checked, only
not implemented abstract methods should be shown
to the user, as the user need to implement these
methods.

I am attaching an example app, download it, unpack
and open in the IDE. In the overridetest.Main,
invoke the "Override and Implement Methods"
dialog, check the "abstract" checkbox and see what
happens.
Comment 1 Jan Lahoda 2004-07-15 10:23:24 UTC
Created attachment 16263 [details]
The test application.
Comment 2 Martin Matula 2004-07-26 16:42:28 UTC
Pavel, please look at this.
Comment 3 Martin Matula 2004-07-28 12:29:03 UTC
*** Issue 44750 has been marked as a duplicate of this issue. ***
Comment 4 Pavel Flaska 2004-07-29 15:19:15 UTC
Fixed.

Checking in org/netbeans/modules/java/tools/InheritanceSupport2.java;
/cvs/java/src/org/netbeans/modules/java/tools/InheritanceSupport2.java,v
 <--  InheritanceSupport2.java
new revision: 1.7; previous revision: 1.6
done
Processing log script arguments...
Comment 5 Jan Lahoda 2004-07-30 09:24:19 UTC
Seems OK in current sources.