commit | a810cc59cafcc292ec4f6010324725bd100f7638 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Fri Jan 07 13:34:47 2011 -0800 |
committer | Andy McFadden <fadden@android.com> | Fri Jan 07 13:34:47 2011 -0800 |
tree | b1f6eac824c6086f3a80e54ba305528356be336f | |
parent | acc847356a8ae6ee093aceb114cfa52a8386aaf6 [diff] |
jniRegisterNativeMethods should abort on failure The jniRegisterNativeMethods function currently behaves like the RegisterNatives function that it wraps, returning 0 on success and nonzero on failure. However, this is an internal-only function used by bits of infrastructure that should never fail to initialize. By aborting sooner we make the failure impossible to ignore. This doesn't appear to break anything. Bug 3323089 Change-Id: I48d1b02d90616d4c9ee01eb0e46cb61752727c5b