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 12:33:33 +0100
commitfd17eabf30cec65a5cfb4df1a298fcf515ef7c93 (patch)
tree35d43f78763c454760888418079a5162ba01a892 /include/ScopedJavaUnicodeString.h
parenta4fcb95b8ee953b2420735c5ad31b3b774a2eb3b (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
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions