summaryrefslogtreecommitdiff
path: root/runtime/module_exclusion_test.cc
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2020-04-01 17:36:26 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-04-02 22:56:50 +0000
commitbda163d9c8313f0b92046abda5ffb1216af1e808 (patch)
treecc38503bef37960ee2d43eb0c8343bb60f931cd8 /runtime/module_exclusion_test.cc
parent963c27f6035db91e99c08bb52101c8acfc0af4d3 (diff)
Additional checks in GetDirectBuffer{Address,Capacity}
Add checks that the buffer argument is non-null and is a j.n.Buffer instance. This matches the behaviour described in the JNI spec for both methods based on RETURNS section commentary. The JNI spec comments for parameters seem at odds since they say the buffer must not be null, (but not MUST not be null :-). Bug: 122025675 Test: art/tools/buildbot-build.sh --host && jni_internal_test Change-Id: Ie74ad2160a7b265e12fe490aa96fccda52379949
Diffstat (limited to 'runtime/module_exclusion_test.cc')
0 files changed, 0 insertions, 0 deletions