This commit is contained in:
Adam D. Ruppe 2020-05-18 10:01:17 -04:00
parent 136b4d0ad5
commit 721d99825e
1 changed files with 2 additions and 2 deletions

4
jni.d
View File

@ -1051,7 +1051,7 @@ export jint JNI_OnLoad(JavaVM* vm, void* reserved) {
return JNI_ERR; return JNI_ERR;
} catch(Throwable t) { } catch(Throwable t) {
import core.stdc.stdio; import core.stdc.stdio;
fprintf(stderr, "%s", (t.toString ~ "\n").ptr); fprintf(stderr, "%s", (t.toString ~ "\n\0").ptr);
return JNI_ERR; return JNI_ERR;
} }
@ -1991,7 +1991,7 @@ mixin template IJavaObjectImplementation(bool isNewClass) {
if((*env).RegisterNatives(env, internalJavaClassHandle_, nativeMethodsData_.ptr, cast(int) nativeMethodsData_.length)) { if((*env).RegisterNatives(env, internalJavaClassHandle_, nativeMethodsData_.ptr, cast(int) nativeMethodsData_.length)) {
(*env).ExceptionDescribe(env); (*env).ExceptionDescribe(env);
(*env).ExceptionClear(env); (*env).ExceptionClear(env);
fprintf(stderr, ("RegisterNatives failed for " ~ typeof(this).stringof)); fprintf(stderr, ("RegisterNatives failed for " ~ typeof(this).stringof ~ "\0"));
return 1; return 1;
} }
return 0; return 0;