Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Fri Apr 25 05:41:44 EDT 2025

Powered by FUDForum. Page generated in 0.02940 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top