Skip to content

Commit

Permalink
[GR-10589] JNIFunctions.RegisterNatives should throw NoSuchMethodError.
Browse files Browse the repository at this point in the history
PullRequest: graal/1803
  • Loading branch information
dougxc committed Jul 11, 2018
2 parents b849b28 + d977c52 commit c9fd75c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static int RegisterNatives(JNIEnvironment env, JNIObjectHandle hclazz, JNINative
if (linkage != null) {
linkage.setEntryPoint(fnPtr);
} else {
return JNIErrors.JNI_ERR();
throw new NoSuchMethodError(clazz.getName() + '.' + name + signature);
}

p = p.add(SizeOf.get(JNINativeMethod.class));
Expand Down

0 comments on commit c9fd75c

Please sign in to comment.