hi dennis, sorry, didn't describe the problem correctly, of course this only appears on classes that have only non-empty constructors. strange enough, we haven't changed anything on these classes for months now, they all didn't have an empty constructor and they worked fine with 1_1_5, but now we needed to add the empty constructor or use "add- constructors=true" as you proposed.
br, günther Am 06.06.2008 um 12:57 schrieb Dennis Sosnoski: > Hi Günther, > > You can use the add-constructors="true" attribute on the <binding> > element to have JiBX automatically add constructors where necessary. I > didn't think I'd ever had JiBX doing this by default. > > Remember that unless you have an explicit constructor for a class you > get a default constructor automatically, so the add- > constructors="true" > option is only needed when you're working with classes which have > non-default constructors defined. > > - Dennis > > > Günther Wieser wrote: >> hi, >> >> wanted to let you know that i found a changed behaviour in jibx >> version 1.1.6: prior to 1.1.6, jibx was able to work with classes >> that >> had no default (empty) constructor. with 1.1.6 it complains about >> that, but it's sufficient to declare a private default constructor. >> this keeps jibx happy and also makes sure that nobody else can >> instantiate an instance using the default constructor. >> >> don't know if this only happens when using jdk 1.4 as we do. >> >> br, >> günther >> >> >> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien [EMAIL PROTECTED] http://www.creative-it.com ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
