Skip to content

bugfix jdk-compatibility

Compare
Choose a tag to compare
@RuedigerMoeller RuedigerMoeller released this 28 May 18:24
· 682 commits to master since this release

fixes for following weird combinations

  • writeMethod, but no readMethod defined
  • readMethod, but no writeMethod defined
  • use defaultWriteObject, read with readFields()
  • use defaultWriteObject, read with readObject()
  • use writeObject, read with defaultReadObject()

[there could be even more combinations, but I did not find sample classes in JDK, I'll fix as they come]

Testclasses:

  • BigDecimal (uses putField, writes old fields from jdk 1.02 ?)
  • javax.security.auth.Subject (synchronizedSets)
  • HtmlEditorKit (all kind of weird stuff)
  • HtmlDocument (moar weird stuff)
  • Inet6Address

don't hesitate to report compatibility issues (aka works with jdk object stream but not with fst).