Hi all,
I have noticed that saveData/loadData or cachePut/cacheGet can no handle
native java Objects when stored to file. I f cacheGet/cachePut is used with
mem is ok but swaping with files
is returning incompleted objects as saveData/loadData do.
code example
try
{
var bkTree = dataLoad('C:\webapps\xxx\temp\tree.data');
console('bktree exists');
}catch(Any e)
{
console('creating bktree');
var bkTree = createObject('java', 'com.xxx.bktree.BKTree').init();
bkTree.add("root", "1");
bkTree.add("000001", '2');
bkTree.add("111110", '3');
dataSave(bktree, 'C:\webapps\xxx\temp\tree.data');
}
var nodes = bktree.search('000000', 1, 1);
writeDump( arrayLen(nodes) );abort;
raises an exception that says the method search is not available.
File contains no trace of a bkTree java object but an openbd atempt of
doing it:
http://ge.tt/6N1HBqT/v/0
I presume this is a bug, isn't it?
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en