summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2022-12-19 00:37:29 +0000
committer Martin Stjernholm <mast@google.com> 2023-01-06 18:15:20 +0000
commit06ae4cf5320390fffe72d36dbc236f1fd84ce305 (patch)
tree71ef808690e0efcc485b6dd565afdd6e947337da /services/coverage/java
parentbe9794edc2be5a62de9cb161d3c322ddcc6896d1 (diff)
Add a checked exception to legacy dexopt code paths.
This exception helps us identify the code in PackageManager that will eventually be replaced by ART Service. It's propagated to the point where the code paths need to fork to call ArtManagerLocal instead. This CL only adds TODO comments at those locations, unless supporting ART Service is trivial. This also fixes some cases where Exception is caught. It's an antipattern because it matches both checked and unchecked exceptions, so it hides unintended catching of checked exceptions. Instead catch RuntimeException, along with a specific list of checked exceptions, if any. Test: Boot without dalvik.vm.useartservice=true Test: m FrameworksMockingServicesTests Bug: 251903639 Change-Id: I53758b8e4b135287e34b412ad1257e5f5fa58273
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions