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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to