Log warning if serialized class has compatibility issues
If an app with targetSdkVersion < 24 serializes a class that has no
serialVersionUID field and its computed default serialVersionUID
would be different if its targetSdkVersion >= 24 then log a warning
explaining the problem and how to solve it.
Bug: 109930347
Test: atest \
core-tests:libcore.java.io.ObjectStreamClassTest \
core-tests:org.apache.harmony.tests.java.io.ObjectStreamClassTest
Manually check adb logcat that the correct message was logged.
Change-Id: I042cd1753cb755bf3a002fda00a0f5900cc421ae
2 files changed