summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-06-09 13:55:00 +0100
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>2016-06-10 14:10:24 +0100
commitd1ce77d790fb9655f09a25afde0b91faf187a74c (patch)
tree62bff0b049f2d03b06facb1cfcfea822006acda5 /include/ScopedJavaUnicodeString.h
parent59053056232f444a9c7f3f117e4fd16bb3118c90 (diff)
Fix clinit-related serialization incompatibility.
For the code: class Parent { some code that will create <clinit> } class Child extends Parent {} java.io.ObjectStreamClass.hasStaticInitializer(Child.class) was returning false. This is technically valid, but historically android was returning true in this case. This causes problems with deserializing classes like Child without explicit serialVersionUID. To mitigate the problem, this change reverts to old behavior if sdk target <= 23. Bug: 29064453 Change-Id: Iaff269ced01543469a30b50673a04d3d8722d261 (cherry picked from commit fd17eabf30cec65a5cfb4df1a298fcf515ef7c93)
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions