From fd4fe3ef5a548a5eb7646270f81b25282ef20819 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Tue, 19 Jul 2011 16:59:12 +0000 Subject: [PATCH] Java API generator: updated CvException class path --- modules/java/gen_java.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/java/gen_java.py b/modules/java/gen_java.py index 96f0f999f1..fe1ea89b3a 100644 --- a/modules/java/gen_java.py +++ b/modules/java/gen_java.py @@ -608,7 +608,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1minMaxLocManual } catch(cv::Exception e) { LOGD("Core::n_1minMaxLoc() catched cv::Exception: %s", e.what()); - jclass je = env->FindClass("org/opencv/CvException"); + jclass je = env->FindClass("org/opencv/core/CvException"); if(!je) je = env->FindClass("java/lang/Exception"); env->ThrowNew(je, e.what()); return NULL; @@ -656,7 +656,7 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1getTextSize } catch(cv::Exception e) { LOGD("Core::n_1getTextSize() catched cv::Exception: %s", e.what()); - jclass je = env->FindClass("org/opencv/CvException"); + jclass je = env->FindClass("org/opencv/core/CvException"); if(!je) je = env->FindClass("java/lang/Exception"); env->ThrowNew(je, e.what()); return NULL; @@ -962,7 +962,7 @@ JNIEXPORT $rtype JNICALL Java_org_opencv_${module}_${clazz}_$fname $ret } catch(cv::Exception e) { LOGD("$module::$fname() catched cv::Exception: %s", e.what()); - jclass je = env->FindClass("org/opencv/CvException"); + jclass je = env->FindClass("org/opencv/core/CvException"); if(!je) je = env->FindClass("java/lang/Exception"); env->ThrowNew(je, e.what()); $default