summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnbiru Shouta <anbi929@gmail.com>2015-07-15 06:13:02 -0700
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2015-07-17 22:34:08 +0100
commit977240b3f4ba40e9a821171c02fcf48ff1219b0b (patch)
tree52225e6c062a7e9fc6087b5e9de36d45dc31b6be
parent64652523d5f96f3b96d36d6ce9d01b42bd47ecc0 (diff)
downloadswig-977240b3f4ba40e9a821171c02fcf48ff1219b0b.tar.gz
Clearer variable name in Java director generated code
Closes #463
-rw-r--r--Source/Modules/java.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx
index 8fbdb13e4..0109bf41a 100644
--- a/Source/Modules/java.cxx
+++ b/Source/Modules/java.cxx
@@ -3428,7 +3428,7 @@ public:
Printf(f_runtime, "namespace Swig {\n");
Printf(f_runtime, " namespace {\n");
Printf(f_runtime, " jclass jclass_%s = NULL;\n", imclass_name);
- Printf(f_runtime, " jmethodID director_methids[%d];\n", n_methods);
+ Printf(f_runtime, " jmethodID director_method_ids[%d];\n", n_methods);
Printf(f_runtime, " }\n");
Printf(f_runtime, "}\n");
@@ -3445,8 +3445,8 @@ public:
Printf(w->code, "Swig::jclass_%s = (jclass) jenv->NewGlobalRef(jcls);\n", imclass_name);
Printf(w->code, "if (!Swig::jclass_%s) return;\n", imclass_name);
Printf(w->code, "for (i = 0; i < (int) (sizeof(methods)/sizeof(methods[0])); ++i) {\n");
- Printf(w->code, " Swig::director_methids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature);\n");
- Printf(w->code, " if (!Swig::director_methids[i]) return;\n");
+ Printf(w->code, " Swig::director_method_ids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature);\n");
+ Printf(w->code, " if (!Swig::director_method_ids[i]) return;\n");
Printf(w->code, "}\n");
Printf(w->code, "}\n");
@@ -4100,7 +4100,7 @@ public:
if (!is_void)
Printf(w->code, "jresult = (%s) ", c_ret_type);
- Printf(w->code, "jenv->%s(Swig::jclass_%s, Swig::director_methids[%s], %s);\n", methop, imclass_name, methid, jupcall_args);
+ Printf(w->code, "jenv->%s(Swig::jclass_%s, Swig::director_method_ids[%s], %s);\n", methop, imclass_name, methid, jupcall_args);
// Generate code to handle any Java exception thrown by director delegation
directorExceptHandler(n, catches_list ? catches_list : throw_parm_list, w);