I am using `@Deprecated(...)` in my Kotlin librar...
# announcements
l
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
Is your library available in Maven? Can you share code to reproduce?
l
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
Oh, I see, so it's an R8 bug.
l
Yes, it seems like. Sorry for not updating here, I thought this conversation was log lost. 😅