I'm trying to analyze Java heap dumps in the case an exception is thrown. So e.g. for a method
void foo(){
int[] a = new int[100];
//do stuff
throw new RunTimeException();
}
I create a heap dump and try to access the values of the array. For this i'm using the provided classes from com.sun.tools.hat.internal.model.
The problem is that when I iterate over all JavaThings given by the Snapshot I can't find the array. Is it possible that the values of the last stack frame aren't saved?
Also: What would be the easiest way to access the array in the example using the given classes?