Closed rrevo closed 11 years ago
The issue was caused because the class was inserted first as part of an exception trace, Later the same class was inserted as part of the normal meta class loading. This causes an exception when the class was loaded by name.
Fix is to check if a class has been already partially inserted before during a normal insert.
Fix to merge classes during insert was implemented in commit ad9933b0a7afe5a614d23d2314937e5a763f83a0
In revision 4c817dd31fa7845a119e049a45839cdd13dc7b69 IMethod and IClass do not directly store other IClass references. They store db references like ClassId. The intent to make this change was that mutations in objects would be difficult to update if the objects were directly stored. With references, a newer object can be obtained in the future. It does not solve all the problems related to incomplete information but reduces them. It also means that IMetaService becomes critical for clients.
For the Guice sample, ClassDAO.getClassByName throws an exception since too many results were returned