Which case?
2011/9/23 Łukasz Zieliński <[email protected]>: > Hello, > > on a side note if I remember correctly I was getting > StackOverflowExceptions in such case. It would be nice to have a more > explicit one. > > Regards, > Łukasz Zieliński > > 2011/9/23 Niclas Hedhman <[email protected]> > >> Gang, >> >> In 1.x, it seems that there were many (all?) cases where if no use() >> was given in the builders, the construction of the object (transient?) >> would fail. In 2.0, the current code will create a new object on the >> fly if it can. For instance; >> >> public class A >> { >> @Uses B b; >> } >> >> public class B >> { >> // default constructor >> } >> >> Then if one do; >> >> A anObject = module.newObject( A.class ); >> >> this will not fail. In 1.x it would, since no use() is given. >> >> >> So the question is; Which one is the correct behavior? Explicit use() >> declarations or on-the-fly-creation-if-possible? >> >> >> Cheers >> -- >> Niclas Hedhman, Software Developer >> http://www.qi4j.org - New Energy for Java >> >> I live here; http://tinyurl.com/3xugrbk >> I work here; http://tinyurl.com/24svnvk >> I relax here; http://tinyurl.com/2cgsug >> >> _______________________________________________ >> qi4j-dev mailing list >> [email protected] >> http://lists.ops4j.org/mailman/listinfo/qi4j-dev > _______________________________________________ > qi4j-dev mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/qi4j-dev > -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/3xugrbk I work here; http://tinyurl.com/24svnvk I relax here; http://tinyurl.com/2cgsug _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

