Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » Attention writers of plug-ins for MAT - API changes
Attention writers of plug-ins for MAT - API changes [message #527145] Wed, 14 April 2010 05:01 Go to previous message
Andrew Johnson is currently offline Andrew Johnson
Messages: 96
Registered: July 2009
Member
Bug 299371 explains the possibility of MAT API changes ready for graduation.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=299371

Bug 308310 explains the need for modifying the MAT API:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=308310

in this case to cope with huge arrays.

Changing the return type of getUsedHeapSize() etc. to long breaks binary compatibility of user written plug-ins, but will be a trivial/no source change and recompile to use the modified method in a 1.0 version of MAT. You could write code which would compile with either version, but it would not be binary compatible.

Adding a getShallowHeapSize() method and deprecating the old method keeps binary compatibility for existing user plug-ins, but to take advantage of the changes requires a recode to change uses of getUsedHeapSize() to getShallowHeapSize(), and then the new version won't work on old MAT 0.8 either. It also clutters the API.

Would writers of plug-ins for MAT like to comment?
 
Read Message
Read Message
Previous Topic:download MAT for RAP
Next Topic:Eclipse Application to generate reports
Goto Forum:
  


Current Time: Sat May 25 14:28:23 EDT 2013

Powered by FUDForum. Page generated in 0.01778 seconds