summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-04-22 13:34:31 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-04-22 13:42:54 -0700
commitba0821ed3bc2536be02df1ae850619b111cbd6f4 (patch)
treeb608df12b48268882137d233fdac43a26021d6be /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4f2dcfd48010a338dc9a2f5870ed12b382c30cd7 (diff)
Make read/write from/to XML persistent state more robust.
When writing critical state to XML an excpetion can lead to creating a malformed XML that is later parsed and may put the device in a bad state. Hence, on any error while writing we should bail out and drop the partially write state on the floor. Corollary, any error on parsing can lead to having a partially read state that is not consistent which may lead to writing this bad state back to disk. Hence, on any error while parsing we should bail as our current state may be unrecoverable. Change-Id: Ia050c16198cb583f8a51263ad2035dbb948052b8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions