summaryrefslogtreecommitdiff
path: root/qpid/gentools/templ.java/MethodBodyClass.tmpl
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2006-12-22 17:43:09 +0000
committerKim van der Riet <kpvdr@apache.org>2006-12-22 17:43:09 +0000
commit78ff340f476f700e3cc3fcfc305cae37db0f42dd (patch)
treed9f369b185329fbc9e17ae7367ce784d09c09711 /qpid/gentools/templ.java/MethodBodyClass.tmpl
parent32d79a6e99ad773e8a7b49efa12e06c028e7d2f4 (diff)
downloadqpid-python-78ff340f476f700e3cc3fcfc305cae37db0f42dd.tar.gz
Additional changes to support new Java AMQP version code, some C++ tidy-up as well.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489704 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/gentools/templ.java/MethodBodyClass.tmpl')
-rw-r--r--qpid/gentools/templ.java/MethodBodyClass.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/gentools/templ.java/MethodBodyClass.tmpl b/qpid/gentools/templ.java/MethodBodyClass.tmpl
index 8ac6c4e00a..ad1ce36006 100644
--- a/qpid/gentools/templ.java/MethodBodyClass.tmpl
+++ b/qpid/gentools/templ.java/MethodBodyClass.tmpl
@@ -54,6 +54,8 @@ ${METHOD_ID_INIT}
public int getClazz() { return classIdMap.get(major + "-" + minor); }
public int getMethod() { return methodIdMap.get(major + "-" + minor); }
+ public static int getClazz(byte major, byte minor) { return classIdMap.get(major + "-" + minor); }
+ public static int getMethod(byte major, byte minor) { return methodIdMap.get(major + "-" + minor); }
// Field methods
%{FLIST} ${mb_field_get_method}