From 46763b974f120d1795fca6c1e757578784f3305a Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 26 Apr 2023 18:02:49 +0000 Subject: [PATCH] [Java] Don't use `wait` as a method name as its reserved --- java_strings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java_strings.py b/java_strings.py index e788604e..a1599125 100644 --- a/java_strings.py +++ b/java_strings.py @@ -1340,6 +1340,8 @@ import javax.annotation.Nullable; extra_java_struct_out += "\t\tif (!(o instanceof " + struct_meth + ")) return false;\n" extra_java_struct_out += "\t\treturn this.eq((" + struct_meth + ")o);\n" extra_java_struct_out += "\t}\n" + if meth_n == "wait": + meth_n = "wait_indefinite" out_java_struct += ("\tpublic " + return_type_info.java_hu_ty + " " + meth_n + "(") for idx, arg in enumerate(argument_types): if idx != 0: -- 2.30.2