Hi,
Besides you suppress the check for
the availability
of the field although it is quite sure it will not be there (I did not
find it in the all source
code of classpath): this causes some huge NullPointerException problems.
The only solution is to change the name "getSerialPersistentFields" into
"serialPersistentFields"
but I do not see the point to complicate things... :( (if someone can
explain it to me)
The only user of the method is setFields() which does the check before
calling getSerialPersistentFields() (it checks by also doing a
getDeclaredField, but this time with the correct spelling).
I agree that the code is not that clean.