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:
parent
64de74460d
commit
ebe5fc182c
5 changed files with 14 additions and 47 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue