diff options
author | Paul Duffin <paulduffin@google.com> | 2019-03-21 13:35:22 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2019-04-16 12:59:45 +0100 |
commit | 21a9a2ba1f7e439ebfaaa08374715f85d2ef2774 (patch) | |
tree | e94dc4ef5ac83b7fd0a166462efea163c20270aa /annotations/generate_annotated_java_files.py | |
parent | a089bb3e4656da4d00c9f9976a747acb9e7618aa (diff) |
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
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions