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.
(cherry picked from commit acd34adfb1e6c20452b89fb9427e0caae44dc358)
Change-Id: If5b8c4777ef292907b081ea98341fc61e73f5306
Loading
Please sign in to comment