From 7628646b63bde0361142c43c101dc111ffe89d2e Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 24 Jan 2024 21:35:50 +0300 Subject: [PATCH] Fix Java build. --- td/generate/tl_writer_jni_h.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/td/generate/tl_writer_jni_h.cpp b/td/generate/tl_writer_jni_h.cpp index 31cef95db..094dd6c3b 100644 --- a/td/generate/tl_writer_jni_h.cpp +++ b/td/generate/tl_writer_jni_h.cpp @@ -105,10 +105,7 @@ std::string TD_TL_writer_jni_h::gen_class_begin(const std::string &class_name, c " virtual void store(TlStorerToString &s, const char *field_name) const = 0;\n\n" " static jclass Class;\n"; } - return "class " + class_name + (!is_proxy ? " final " : "") + ": public " + base_class_name + - " {\n" - " public:\n" - " static jclass Class;\n"; + return TD_TL_writer_h::gen_class_begin(class_name, base_class_name, is_proxy, result) + " static jclass Class;\n"; } std::string TD_TL_writer_jni_h::gen_field_definition(const std::string &class_name, const std::string &type_name,