fix for #2048 (artificial 'delete' method had wrong JNI signature)

pull/2/head
Andrey Pavlenko 13 years ago
parent dc93c21962
commit 2c786a47d0
  1. 6
      modules/java/gen_java.py

@ -11,10 +11,6 @@ class_ignore_list = (
"FileNode", "FileStorage", "KDTree",
#highgui
"VideoWriter", "VideoCapture",
#features2d
#"KeyPoint", "MSER", "StarDetector", "SURF", "DMatch",
#ml
#"EM",
)
const_ignore_list = (
@ -1381,7 +1377,7 @@ JNIEXPORT void JNICALL Java_org_opencv_%(module)s_%(j_cls)s_delete
delete (%(cls)s*) self;
}
""" % {"module" : module, "cls" : name, "j_cls" : ci.jname}
""" % {"module" : module, "cls" : name, "j_cls" : ci.jname.replace('_', '_1')}
)

Loading…
Cancel
Save