Skip to content

Commit 46763b9

Browse files
committed
[Java] Don't use wait as a method name as its reserved
1 parent 569f3d9 commit 46763b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java_strings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,8 @@ def map_function(self, argument_types, c_call_string, method_name, meth_n, retur
13401340
extra_java_struct_out += "\t\tif (!(o instanceof " + struct_meth + ")) return false;\n"
13411341
extra_java_struct_out += "\t\treturn this.eq((" + struct_meth + ")o);\n"
13421342
extra_java_struct_out += "\t}\n"
1343+
if meth_n == "wait":
1344+
meth_n = "wait_indefinite"
13431345
out_java_struct += ("\tpublic " + return_type_info.java_hu_ty + " " + meth_n + "(")
13441346
for idx, arg in enumerate(argument_types):
13451347
if idx != 0:

0 commit comments

Comments
 (0)