NB The double type parameters ([S,A]) are necessary because MOXy always uses the first one as a target for casting from the input string before passing to unmarshal.
NB The double type parameters ([S,A]) are necessary because MOXy always uses the first one as a target for casting from the input string before passing to unmarshal. Unfortunately this means you need to always pass String as the first type parameter when extending the CustomOptionAdapter (eg see DateTimeOptionAdapter).
These bugs describe the behaviour and fix, - https://bugs.eclipse.org/bugs/show_bug.cgi?id=440681 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=431803 The fix should be available in the next release after 2.5.2
Taken from, https://gist.github.com/krasserm/1891525#file-jaxb-02-scala
Taken from, https://gist.github.com/krasserm/1891525#file-jaxb-02-scala