From 6b4cbeea4031d10284926bbc22cb7a0541e6efa2 Mon Sep 17 00:00:00 2001 From: enkore Date: Sat, 6 Dec 2014 15:52:44 +0100 Subject: [PATCH] Fix outright compiler error in jassimp.cpp --- port/jassimp/jassimp-native/src/jassimp.cpp | 4 +++- port/jassimp/jassimp-native/src/jassimp.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/port/jassimp/jassimp-native/src/jassimp.cpp b/port/jassimp/jassimp-native/src/jassimp.cpp index ae64ad191..db803f106 100644 --- a/port/jassimp/jassimp-native/src/jassimp.cpp +++ b/port/jassimp/jassimp-native/src/jassimp.cpp @@ -1379,6 +1379,7 @@ JNIEXPORT jobject JNICALL Java_jassimp_Jassimp_aiImportFile goto end; error: + { jclass exception = env->FindClass("java/io/IOException"); if (NULL == exception) @@ -1390,6 +1391,7 @@ error: env->ThrowNew(exception, aiGetErrorString()); lprintf("problem detected\n"); + } end: /* @@ -1405,4 +1407,4 @@ end: lprintf("return from native\n"); return jScene; -} \ No newline at end of file +} diff --git a/port/jassimp/jassimp-native/src/jassimp.h b/port/jassimp/jassimp-native/src/jassimp.h index 4eaec5541..6f90bb3b6 100644 --- a/port/jassimp/jassimp-native/src/jassimp.h +++ b/port/jassimp/jassimp-native/src/jassimp.h @@ -7,8 +7,6 @@ #ifdef __cplusplus extern "C" { #endif -/* Inaccessible static: BUILTIN */ -/* Inaccessible static: s_wrapperProvider */ /* * Class: jassimp_Jassimp * Method: getErrorString