[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: [CDO 1.0] weak references and adapters

This is not hard to do, and it's how I've solved the problem, I'm just concerned that it is a very big "gotcha" for anyone new to CDO. It took me a full day of debugging to figure out what the heck was going on and why objects kept losing their adapters... it turned out it wasn't that the adapters were disappearing but that the objects were disappearing, but that was not easy to figure out! I think if well-documented it's fine to leave as-is though.

Eike Stepper wrote:

Could it be better to leave it to the adapter implementor to meet this decision and take care to strongly reference the adapter from somewhere (and the object from the adapter)?