summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2019-12-19 12:23:01 +0000
committer Paul Duffin <paulduffin@google.com> 2019-12-19 19:19:40 +0000
commit0a2868309a3eac9530e456d443074b5f4076d2a9 (patch)
tree413cfbca4a8b7b952c3a775123aba977617ceff6 /java/java_test.go
parenta48f758d840290dd75fced5234e1c178bf3dc113 (diff)
Detect registration of duplicate module/singleton types
Module type and singleton type names have to be unique but duplicates are not checked when the relevant android.Register...() func is called. Instead they are collated in lists and then registered with the Context later on, at which point duplicates are detected. That loses information that can be helpful in fixing the issue. This is not an issue when testing as the module and singleton types are registered directly with the Context. This change adds duplicate detection to the initRegistrationContext Register... methods prior to calling the android.Register... methods which should make it easier to detect duplicates registered from an init() function. Test: m checkbuild Bug: 146540677 Change-Id: I7f1a4b649072867717a9829c737a44454b12266c
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions