Trying to deep clone a big large object we are getting the following exception with XMLGregorianCalendar
Class net.sf.beanlib.provider.replicator.ReplicatorTemplate can not access a member of class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl with modifiers "public"
Can I bypass this exception with a custom initializer or constructor?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trying to deep clone a big large object we are getting the following exception with XMLGregorianCalendar
Class net.sf.beanlib.provider.replicator.ReplicatorTemplate can not access a member of class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl with modifiers "public"
Can I bypass this exception with a custom initializer or constructor?
Thanks
Yup a custom bean transformer will do the trick. Some doc (for an upcoming 5.x release):
http://beanlib.svn.sourceforge.net/viewvc/beanlib/trunk/beanlib-doc/
The API is not backward compatible, but similar enough in nature.
HTH.
Thanks Hanson for the quick answer!
Do you have an example? =P
Didn't you find any examples in the doc I pointed you to ?
The example shows a strategic to solve a class with a missing constructor without arguments.
I think that overriding the "transform" method will do the trick. It's very strange that anyone hasn't had this issue with XMLGregorianCalendar.