Minor improvements to Java director:except patch
This commit is contained in:
parent
9237c4553c
commit
97fd20a58d
2 changed files with 3 additions and 2 deletions
|
|
@ -38,8 +38,9 @@ class string;
|
|||
|
||||
%typemap(directorout) string
|
||||
%{ if(!$input) {
|
||||
if (!jenv->ExceptionCheck())
|
||||
if (!jenv->ExceptionCheck()) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null string");
|
||||
}
|
||||
return $null;
|
||||
}
|
||||
const char *$1_pstr = (const char *)jenv->GetStringUTFChars($input, 0);
|
||||
|
|
|
|||
|
|
@ -4225,7 +4225,7 @@ public:
|
|||
}
|
||||
|
||||
// Replace all occurrences of $error with common var name.
|
||||
Replaceall(featdirexcp, "$error", "thrown_");
|
||||
Replaceall(featdirexcp, "$error", "swigerror");
|
||||
Printf(w->code, " %s\n", featdirexcp);
|
||||
}
|
||||
Delete(featdirexcp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue