[Teneo][CDO-Hibernate] Problem with CDOFeatures identity [message #617872] |
Tue, 22 April 2008 12:28 |
Eric Messages: 40 Registered: July 2009 |
Member |
|
|
Hi Martin, Eike,
I have a problem when looking for features with the latest version of
CDO (from CVS). Me and Simon reported a bug a few days ago about
multiple inheritence in CDO and the fix was to add the following code to
CDOClassImpl.java(version 1.35):
public int getFeatureID(CDOFeature feature)
{
int index = feature.getFeatureIndex();
if (index != -1)
{
CDOFeature[] features = getAllFeatures();
while (index < features.length)
{
if (features[index] == feature) <------- Need to be same object!
{
return index;
}
++index;
}
}
return -1;
}
As you can see, in order to find the right feature, it needs to be
contained in the allFeatures[] array. When debugging my code, we've
noticed that the feature I was looking for wasn't in the array, so
probably Teneo did a copy of the features... Is it possible that Teneo
might not be up to date with this CDO fix yet?
Thanks,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.02882 seconds