Hi,
I wonder if I hit a bug or this is in the accordance to the spec.
I have class A extending class B. Class B has protected "afterUnmarshal"
callback. Class A does not have such method. I was unmarshalling class A
and expected the callback to be hit. It did not happen. Looking at the
source, I realized why. To search for "afterUnmarshal" callback, the
code uses "getDeclaredMethods" which returns only declared methods and
not inherited ones.
Of course, there is a simple workaround. Also, it is easy to "fix" JAXB
code. My question is there any reason for not looking at the inheritance
hierarchy or it is simply a bug.
Thank you,
Yevgeny Shakhnovich
<
http://585414.sigclick.mailinfo.com/sigclick/060D0402/00024E03/03490323
516162.jpg>