diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-07-12 14:08:59 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-07-12 14:08:59 +0000 |
commit | f38c42de0fff9f3d1dd363ad64e98ea05b0bc21f (patch) | |
tree | c1d143382baf2471d931996e544022cb060cf947 /bindings | |
parent | 0a955e18d5f760bd8d4369a24e3d2e3dd0bca8ea (diff) | |
download | lasso-f38c42de0fff9f3d1dd363ad64e98ea05b0bc21f.tar.gz lasso-f38c42de0fff9f3d1dd363ad64e98ea05b0bc21f.tar.xz lasso-f38c42de0fff9f3d1dd363ad64e98ea05b0bc21f.zip |
[Binding java] use is_rc to match error return type
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/java/lang.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/java/lang.py b/bindings/java/lang.py index 64ec2e0f..4601d206 100644 --- a/bindings/java/lang.py +++ b/bindings/java/lang.py @@ -942,10 +942,10 @@ protected static native void destroy(long cptr); arglist = generate_arg_list2(args[1:]) if arglist: arglist = ', ' + arglist - if m.errors: + if is_rc(m.return_type): print >> fd, 'LassoException.throwError(', print >> fd,'LassoJNI.%s(this%s)' % (jni_name,arglist), - if m.errors: + if is_rc(m.return_type): print >> fd, ');' else: print >> fd, ';' |