Nico Klasens wrote:
> First, I am a little confused about the status of the HEAD. Should I 
> still use it as version 1.8? The 1.8.1 release is created with a branch 
> named MMBase-1_8_1_Final which seems odd to me as a branch name for 
> version 1.8. The below complaint could be wrong when I shouldnĂ˝ use it 
> anymore.

We always do that. Every release since 1.6.0 was marked with a CVS tag
ending in _Final, meaning that it is the final version with that
number. Therefore 1.8.1 was marked 1_8_1_Final because the current CVS
HEAD is a pre 1.8.2 version, and not any more 1.8.1.

Postfixes other then _Final could be e.g. 'beta', 'rc1' or 'rc2'. In
principle this is also reflected in org.mmbase.Version, which is always
checked in immediately before and after a tag.

1_8_1_Final is, I hope,  not a branch but a tag.


> I have some troubles with the getRelations and getRelatedNodes methods 
> in the head. These methods have changed after release 1.8.1 and I get 
> wierd results from them. When I call getRelations("myrole") then I never 
> get a result. I first got a NPE and did a quick fix. This didn't work 
> like I had hoped. Then I noticed that more had changed in CVS. Today, I 
> checked some more things in my app and got this exception
> 
> java.lang.RuntimeException: Builder with name: object(otype 3) is not 
> the actual builder of the node that is to be deleted: 736 (otype: 91)
>        at 
> org.mmbase.module.core.MMObjectBuilder.removeNode(MMObjectBuilder.java:883)
>        at org.mmbase.module.core.MMObjectNode.remove(MMObjectNode.java:351)
>        at 
> org.mmbase.bridge.implementation.BasicNode.deleteRelations(BasicNode.java:615)
>        at 
> org.mmbase.bridge.implementation.BasicNode.delete(BasicNode.java:545)
> 
> Several things have changed which makes it unclear to me where I should 
> start to fix.

I indeed changed getRelations en getRelatedNOdes, in the bridge
though. The goal was a considerable speed up in certain situations
(because of the avoidance of 'OR' queries). I was not aware that it
broke anythink, but I'm probably mistaken then. I did not see anything
go wrong in the tests I did (could be that i did not call
deleteRelations, btw). Nor does any automated test produces errors. Your
mileage probably varies. I will look into it today.

Michiel


-- 
Michiel Meeuwissen                  mihxil'
Peperbus 107 MediaPark H'sum          [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to