1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

do not throw exceptions from native code: this does not work on some devices

This commit is contained in:
Nikolay Pultsin 2014-04-19 01:18:38 +01:00
parent 64de74460d
commit ebe5fc182c
5 changed files with 14 additions and 47 deletions

View file

@ -166,8 +166,6 @@ public:
static shared_ptr<VoidMethod> Method_NativeBookModel_registerFontFamilyList;
static shared_ptr<VoidMethod> Method_NativeBookModel_registerFontEntry;
//static shared_ptr<StaticObjectMethod> StaticMethod_BookReadingException_throwForFile;
public:
static bool init(JavaVM* jvm);
static JNIEnv *getEnv();
@ -182,10 +180,6 @@ public:
static jintArray createJavaIntArray(JNIEnv *env, const std::vector<jint> &data);
static jbyteArray createJavaByteArray(JNIEnv *env, const std::vector<jbyte> &data);
static void throwRuntimeException(const std::string &message);
static void throwCachedCharStorageException(const std::string &message);
//static void throwBookReadingException(const std::string &resourceId, const ZLFile &file);
};
inline jstring JString::j() { return myJ; }