Status Update
Comments
jo...@google.com <jo...@google.com>
er...@google.com <er...@google.com> #2
Thanks for the feedback. We are sorry it took so long for us to get to this report. We would really appreciate it if you could confirm that this is still an issue for you and if so we will route it to the right team.
For information of what’s needed in the report please don’t forget to read this guide at
an...@google.com <an...@google.com> #3
In the future, if you encounter this or any other issue, please read
Thank you!
al...@google.com <al...@google.com> #4
Thanks for the feedback. We are sorry it took so long for us to get to this report. We would really appreciate it if you could confirm that this is still an issue for you and if so we will route it to the right team.
Yes.
al...@google.com <al...@google.com> #5
aosp/2060764 contains the regression test for AndroidX and it is still failing.
bl...@google.com <bl...@google.com>
bl...@google.com <bl...@google.com>
an...@google.com <an...@google.com> #6
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 5
- Android Gradle Plugin 8.3.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
bl...@google.com <bl...@google.com> #7
Fix reverted due to
bl...@google.com <bl...@google.com>
an...@google.com <an...@google.com> #8
Further fixes for this issue are now available in:
- Android Studio Iguana | 2023.2.1 Canary 11
- Android Gradle Plugin 8.3.0-alpha11
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
Originally found in b/227166311 for
@RequiresOptIn
detector.For the following usage where
AnnotatedJavaClass
is annotated with an applicable annotation:A lint detector will receive a callback to
visitAnnotationUsage
for the constructor call; however, it will not receive a callback for the variable declaration on the preceding line.There's possibly an argument to be made for the usage of
obj
on the LHS of the assignment with the constructor, as well. The Kotlin compiler will raise three warnings in its own implementation of@RequiresOptIn
detection: the declaration ofobj
, the reference on the LHS of the assignment, and the constructor call on the RHS of the assignment.