From: Lars H. <he...@se...> - 2005-12-21 09:49:07
|
Hi, [...] >> org.tmapi.core.TopicMap tm; >> AssociationRole ar = (AssociationRole)tm.getObjectById(idAssocRole); >> java.lang.StackOverflowError > [...] >> if the idAssocRole is not correct, the call gives null, >> but if the idAssocRole is correct, StackOverflowError I think I've found the failure. The method Object wrap(Object obj, TMAPITopicMapImpl tm) forgets an argument (the player) if the "obj" is a Member instance and calls itself again and again. It should call AssociationRole wrap(org.tm4j.topicmap.Member obj, org.tm4j.topicmap.Topic player, TMAPITopicMapImpl tm) Maybe the attached patch helps. Note, that the patch is only a hack (see the TODO annotation) and is not tested. Best regards, Lars -- http://semagia.com |