I'm currently trying to retrieve a list of all the previous versions of
a node.
I'm actually using: 

<pre>
Version version = node.getBaseVersion();
Version[] versionArray = version.getPredecessors();
for (int i = 0; i < versionArray.length; i++)
       versions.add(versionArray[i]);
</pre>

Going through the debugger this doesn't seem to be throwing any errors
but for some reason this ALWAYS seems to return 1 version no matter how
many there actually are.

Am I doing something wrong? I'm also assuming that the BaseVersion is
the most recent version, is this right? 
Thanks,
Brett

Reply via email to