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 16830 - Method breakpoints could be able to detect calls of overridden method.
Summary: Method breakpoints could be able to detect calls of overridden method.
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-22 16:15 UTC by Marian Petras
Modified: 2010-04-29 09:09 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2001-10-22 16:15:41 UTC
Let's assume a user has a simple inheritance hierarchy of classes:

   package.Class
   - method 'method()'

   package.SubClass extends packages.Class
   - method 'method()' (overrides Class.method())

The user wants to stop whenever method 'method()' is called on object of type
'package.Class' or its subtype. Currently s/he has to place breakpoints on
method 'method()' in all subclasses of class 'package.Class'.
Comment 1 Jan Chalupa 2001-11-27 12:09:16 UTC
Target milestone -> 3.3.1.
Comment 2 Marek Grummich 2002-07-22 08:56:58 UTC
Target milestone was changed from '3.4' to TBD.
Comment 3 Marek Grummich 2002-07-22 09:00:00 UTC
Target milestone was changed from '3.4' to TBD.
Comment 4 Martin Entlicher 2005-05-13 16:32:42 UTC
We would need to scan for all subclasses. Therefore it seems like some
integration with Java module would be necessary.
Comment 5 Martin Entlicher 2006-07-03 16:47:17 UTC
MethodEntryRequest.addClassFilter(ReferenceType refType) can be used to
implement this.
Comment 6 Martin Entlicher 2007-04-10 13:50:23 UTC
This is already fixed in 6.0 builds. We use MethodEntryRequest for that.
Comment 7 Quality Engineering 2010-04-29 09:09:00 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.