From 78ff340f476f700e3cc3fcfc305cae37db0f42dd Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Fri, 22 Dec 2006 17:43:09 +0000 Subject: 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 --- qpid/gentools/templ.java/MethodBodyClass.tmpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qpid/gentools/templ.java/MethodBodyClass.tmpl') 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} -- cgit v1.2.1