Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » How to get all objects which class implements specific interface?
How to get all objects which class implements specific interface? [message #9849] Tue, 31 March 2009 22:38 Go to next message
Samuel Cai is currently offline Samuel Cai
Messages: 1
Registered: July 2009
Junior Member
Hi,

I was trying to get all objects which class implements specific interface,
1. (from reference)
SELECT * FROM ( SELECT *
FROM java.lang.Class c
WHERE c implements
com.sap.tools.memory.snapshot.model.IClass )
Result:
Problem reported:
Sub-Select must return an object list: SELECT * FROM java.lang.Class c
WHERE (c INSTANCEOF com.sap.tools.memory.snapshot.model.IClass)

2.
SELECT * FROM java.lang.Class c WHERE c implements
com.sap.tools.memory.snapshot.model.IClass
Result:
Your Query did not yield any result.
SELECT * FROM java.lang.Class c WHERE (c INSTANCEOF
com.sap.tools.memory.snapshot.model.IClass)

3.
SELECT * FROM INSTANCEOF com.sap.tools.memory.snapshot.model.IClass
Result:
Your Query did not yield any result.
SELECT * FROM INSTANCEOF com.sap.tools.memory.snapshot.model.IClass

All three tries don't work, has anyone tried on same question?
Note:
I tried our interface and com.sap.tools.memory.snapshot.model.IClass, both
don't work. The Analyzer version is 0.7.100.

Thanks,
Samuel
Re: How to get all objects which class implements specific interface? [message #9897 is a reply to message #9849] Thu, 02 April 2009 08:20 Go to previous message
Erwin Margewitsch is currently offline Erwin Margewitsch
Messages: 17
Registered: July 2009
Junior Member
Hi Samuel,

I think that you wanted to write a query to get all objects which
implement a certain interface...

Unfortunately HPROF dumps from SUN virtual machines do not contain the
information about interfaces which would be necessary for such a query...

Kind regards,
Erwin
Previous Topic:can not get heap dump on win32 ?
Next Topic:CorruptDataException with (MAT+DTFJ) when reading a jextracted core
Goto Forum:
  


Current Time: Sat Aug 02 02:41:52 EDT 2014

Powered by FUDForum. Page generated in 0.01467 seconds