commit | 9ab59123f20a3b6d304d0338c3f9601441a06462 | [log] [tgz] |
---|---|---|
author | ThiƩbaud Weksteen <tweek@google.com> | Mon Sep 20 09:37:38 2021 +0200 |
committer | ThiƩbaud Weksteen <tweek@google.com> | Thu Sep 23 07:36:58 2021 +0000 |
tree | 6cd89f07e38c37a71e81b5232ce2762486844344 | |
parent | ce6cb3f666159300084b75f651284e731b3a4b77 [diff] |
Validate @Enforce expression earlier As suggested by Jooyung in a previous change, validate the expression when parsing the interface. Add unit tests to confirm that the expected errors are raised for empty or malformed expressions. With this implementation, the condition expression is parsed twice (once when loaded and once when generating the Java code). Test: out/host/linux-x86/nativetest64/aidl_unittests/aidl_unittests Bug: 197828948 Change-Id: I8d6008c33b17dc1b0e473c6299cd601f86d9629a
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview