Gang/Rickard, I have looked a bit closer at the AssociationDecoratorTest, and it is incredible...
If the test is run by itself, it never fails (100s of times). But if I run all the tests in qi4j-runtime in a batch, then it fails very, very often (not always). The bug manifests itself in the constructor of DecoratorMixin. It is called 3 times, once for the builder.newInstance() (line 69), once for employees() (line 71) and once for boss() (line 74), and when it doesn't work the constructor argument contains an instance of UsesGenericClassTest (!), instead of BuilderManyAssociationState or DefaultManyAssociationState. It is always the same phantom test class that shows up in the constructor, but if I remove that test class from the test suite, something else shows up, for instance java.lang.ArrayList !!! Cheers -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

