This PR is adding a new serialization warning for the case when a value class 
declares one of the following serialization related methods:

- readObject
- writeObject
- readObjectNoData

They have no effect if declared in value classes, fact that should be notified 
to the user,

TIA

-------------

Commit messages:
 - adding tests plus bug fix
 - 8378908: [lworld] Serializations warnings for value classes that have 
private serialization methods

Changes: https://git.openjdk.org/valhalla/pull/2187/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2187&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8378908
  Stats: 148 lines in 21 files changed: 104 ins; 3 del; 41 mod
  Patch: https://git.openjdk.org/valhalla/pull/2187.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2187/head:pull/2187

PR: https://git.openjdk.org/valhalla/pull/2187

Reply via email to