tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Example.java compilation error, Java build fails, libtdjni cannot be generated #2658

Closed baikatov closed 1 year ago

baikatov commented 1 year ago

Compilation error in Example.java lines 305-306, master branch

Unhandled Exception (screenshot) ![image](https://github.com/tdlib/td/assets/32789997/816c5140-eb01-40a3-b52a-9a8eefb2249b)
Inconvertible Types (screenshot) ![image](https://github.com/tdlib/td/assets/32789997/f50b4bde-bce2-4bf2-81c6-3b5eeee86549)


Prevents from compiling Example.java and building libtdjni

Caused by this commit: https://github.com/tdlib/td/commit/dd77e4628f1a65f332f0cb81c82a19c0fcfa40c2, reverting it resolves this issue

levlam commented 1 year ago

The regression was fixed in TDLib 1.8.21, which will be released soon. For now, I would recommend to revert the last master commit as you did.