summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorCody Kesting <ckesting@google.com>2019-03-14 10:35:23 -0700
committerCody Kesting <ckesting@google.com>2019-03-15 15:46:09 +0000
commit99ef1d40dce0a5b27f08e02e101485aeb48770fc (patch)
tree4c0700be3b3e9e85569dade28047e49da2f10449 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1f6b8f50c1b117e85608394221181469f336e244 (diff)
Fix ServiceState.hashCode() bug.
ServiceState currently overrides hashCode() incorrectly. It hashes an Array field without using Arrays.hashCode(), meaning that the default Object.hashCode() implementation is used (which is based on the address of the Array field). This allows equivalent ServiceState instances to produce different hashes. Bug: 128609620 Test: atest CtsTelephonyTestCases:ServiceStateTest Change-Id: I40a7d0b7ebab6d2a1be47ea63a6d223c4c13700b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions