]> git.bitcoin.ninja Git - ldk-java/commitdiff
[Java] Don't use `wait` as a method name as its reserved
authorMatt Corallo <git@bluematt.me>
Wed, 26 Apr 2023 18:02:49 +0000 (18:02 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 26 Apr 2023 18:02:49 +0000 (18:02 +0000)
java_strings.py

index e788604e77aa2022c7468984e215cc1a02a9c817..a15991259093dca37b18c24ff2af5cc54581df7a 100644 (file)
@@ -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: