From: George T. <geo...@fr...> - 2005-12-21 16:09:31
|
Thank you, I will test it and I will reply to you about the results Cheers ----- Original Message ----- From: "Lars Heuer" <he...@se...> To: "George Tryfon" <geo...@fr...> Cc: <tm4...@li...> Sent: Wednesday, December 21, 2005 11:55 AM Subject: Re: [Tm4j-developers] TMAPI tm.getObjectById (id_association_role) -> StackOverflowError > 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 ____________________________________________________________________ http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ. http://www.freemail.gr - free email service for the Greek-speaking. |