[mdr-users] Newbie: correct way to find usages of one class by another

"Richard Kennard" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Organization Kennard Consulting
Message-ID <000001c55f62$e6b5b930$70161fd3@kennard>
Dear All,

What is the correct way to find all usages of, say, a class 'Foo'?

If I construct a WhereUsedQuery and pass it a JavaClass of Foo, I only get
back usages of its constructor (and static enums and the like).

If I call 'getContents()' and iterate through all its methods, that doesn't
include any superclass methods.

So do I need to call 'getSuperclass()' and iterate through all its methods
too, and so on all the way up to java.lang.Object, then unwind the stack and
try to decipher what I've found?

This seems to result in an awful lot of WhereUsedQuerys just to map out the
usages of a single class?

Many thanks in advance,

Richard.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.