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.
[ BUILD # : 200906261401 ] [ JDK VERSION : 1.6.* ] If anonymous class, constructed from interface, overrides method from class Object, usages of those methods from this interface are not found.
Created attachment 84393 [details] No usages found for anonymous class method
I can't say precisely only from the attached screenshot, but this is as designed IMHO. If inside of an anonymous class, the usages will be found only inside of the class itself (scope). You can check the 'Search from Base Class' CB for all toString() usages.
> You can check the 'Search from Base Class' CB for all toString() usages. 1. this would not help, as I don't want to see all thousands of matches for Object#toString(). I only want to find matches for interface Reference#toString(). 2. if searching for "aliases()" usages, dialogue properly displays "Search from Base Class [Reference]" So dialogue should remember, that every interface implicitly implements all methods from class Object. Maybe there should be 2 CB: - "Search from Super Class/Interface [Reference]" - "Search from Base Class/Interface [Object]"
Yes, this could be definitely done.