[FIR] FirJavaFacade: fix contract violation from annotations

`isJavaDeprecatedAnnotation` can't be used here because it triggers
the resolution of an annotation ClassId

^KT-62705 Fixed
This commit is contained in:
Dmitrii Gridin
2023-10-19 22:14:58 +02:00
committed by Space Team
parent 931c2ce47a
commit d689c1a38f
10 changed files with 110 additions and 15 deletions
@@ -0,0 +1,33 @@
// FILE: usage.kt
package first
import third.<!DEPRECATION!>JavaClass<!>.<!DEPRECATION!>NestedJavaClass<!>
// FILE: KotlinAnnotation.kt
package second
class KotlinClass {
fun foo(i: Int) {}
annotation class KotlinAnnotation
}
// FILE: third/JavaClass.java
package third;
import second.KotlinClass.*;
import static second.KotlinClass.*;
/**
* @deprecated deprecated message
*/
@KotlinAnnotation
public class JavaClass {
/**
* @deprecated deprecated message
*/
@KotlinAnnotation
public static class NestedJavaClass {
}
}