https://kotlinlang.org logo
#announcements
Title
# announcements
l

Lukas K-G

03/25/2021, 5:45 AM
I am using
@Deprecated(...)
in my Kotlin library but from a plain Java project, the deprecation is not shown. Is that a known issue or is there anything wrong with my setup? 🤔
I have searched the internet and found this which indicates it should work and also some comments that suggest it should not. 🤷 My suspicion is this should work, but I am unsure why it does not.
I can see
@kotlin.Deprecated
in the decompiled class files, but no
@Deprecated
.
a

Alexey Belkov [JB]

03/31/2021, 10:30 AM
Is your library available in Maven? Can you share code to reproduce?
l

Lukas K-G

03/31/2021, 11:15 AM
Hi @Alexey Belkov [JB], thanks for answering. Unfortunately I am talking about a closed - source project, so I can’t share easily. (I can try to create a minimal sample though if required). I found a workaround for this, which is forcing the latest stable R8 version:
classpath 'com.android.tools:r8:2.2.60'
I suspect this issue to be the problem.
🙏 1
a

Alexey Belkov [JB]

03/31/2021, 11:40 AM
Oh, I see, so it's an R8 bug.
l

Lukas K-G

03/31/2021, 11:41 AM
Yes, it seems like. Sorry for not updating here, I thought this conversation was log lost. 😅
6 Views