commit | 358c6172ead88553e1d6eb5be5f2bd4491b7009c | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Thu Aug 03 00:38:40 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 03 00:38:40 2023 +0000 |
tree | 60ee754896e599f1754e1afbb2eb59a584649b6a | |
parent | 3ac2d484661504e3955c2a891a16ef3c701b92d1 [diff] |
pw_rpc: Improve Java client error message for missing parser() method pw_rpc services currently store the class objects for generated protobuf. Their parser() method is called using reflection to get an object for parsing requests or responses. This fails in two situations: - The class is not actually a generated protobuf class. - The parser() method was optimized out (b/293361955). This change improves the error message when calling parser(), adding a reference to b/293361955. It also makes the class objects package private to simplify transitioning to storing parsers in the future. Change-Id: If69665028f088d79271aebf290a64f25db5a0784 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/159471 Reviewed-by: Carlos Chinchilla <cachinchilla@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.