title: OQL in Eclipse memory analyzer - how to display array / ArrayList contents
body: <p>I have a dump which I opened with Eclipse Memory Analyzer.</p>
  
  <p>I would like to export some contents of the heap into a file.</p>
  
  <p>One of the fields I'm interested in is an <code>ArrayList</code> and I could not find a way to query the dump in a way that will return the <strong>contents</strong> of the array list as an output:</p>
  
  <ul>
  <li><p>Selecting the ArrayList object itself returns something like:
  <code>java.util.ArrayList [id=0xf2765680]</code> </p></li>
  <li><p>Selecting the array within the
  array list (<code>select arr.elementData...</code>) returns something like:
  <code>java.lang.Object[] [id=0xf2765698;length=4]</code></p></li>
  <li><p>Selecting <code>toString(arr)</code> or <code>toString(arr.elementData)</code> returns empty string when the arrayList isn't null (and the string <code>null</code> when it is).</p></li>
  </ul>
  
  <p>Is it really impossible??</p>