Commit 21a9a2ba authored by Paul Duffin's avatar Paul Duffin
Browse files

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
parent a089bb3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment