diff options
Diffstat (limited to 'bindings/lang_java.py')
-rw-r--r-- | bindings/lang_java.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/lang_java.py b/bindings/lang_java.py index 026a9e43..4686eb35 100644 --- a/bindings/lang_java.py +++ b/bindings/lang_java.py @@ -170,7 +170,7 @@ public abstract interface LassoConstants { print >> fd, 'String ', elif c[0] == 'b': print >> fd, 'boolean ', - print >> fd, '%s = LassoJNI.%s_get();' % (c[1], c[1]) + print >> fd, '%s = LassoJNI.%s_get();' % (c[1][6:], c[1]) def generate_Constants_footer(self, fd): print >> fd, '}' @@ -651,7 +651,7 @@ protected static native void destroy(long cptr); # def generate_exception_switch_case(self, fd, name, orig): - print >> fd, ' if (errorCode == LassoConstants.%s) {' % orig + print >> fd, ' if (errorCode == LassoConstants.%s) {' % orig[6:] print >> fd, ' throw new %s(errorCode);' % name print >> fd, ' }' @@ -698,7 +698,7 @@ protected static native void destroy(long cptr); print >> fd, 'public class %s extends %s {' % (name,super) if not abstract: print >> fd, ' public %s() {' % name - print >> fd, ' super(LassoConstants.%s);' % orig + print >> fd, ' super(LassoConstants.%s);' % orig[6:] print >> fd, ' }' print >> fd, ' protected %s(int errorCode) {' % name print >> fd, ' super(errorCode);' |