[FIR] fix NPE on missing java annotations qualifier
^KTIJ-23075 fixed
This commit is contained in:
committed by
Space Team
parent
f07f7885c5
commit
68a17242b3
+5
@@ -3025,6 +3025,11 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaClassWithEmptyAnnotationName.kt")
|
||||
public void testJavaClassWithEmptyAnnotationName() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaClassWithEmptyAnnotationName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaQualifier.kt")
|
||||
public void testJavaQualifier() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaQualifier.kt");
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
FILE: main.kt
|
||||
public final fun main(): R|kotlin/Unit| {
|
||||
lval j: R|JavaClass| = R|/JavaClass.JavaClass|()
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// FILE: main.kt
|
||||
|
||||
fun main() {
|
||||
val j: JavaClass = JavaClass()
|
||||
}
|
||||
|
||||
// FILE: JavaClass.java
|
||||
|
||||
@()
|
||||
public class JavaClass {}
|
||||
+6
@@ -3431,6 +3431,12 @@ public class FirDiagnosticTestGenerated extends AbstractFirDiagnosticTest {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaClassWithEmptyAnnotationName.kt")
|
||||
public void testJavaClassWithEmptyAnnotationName() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaClassWithEmptyAnnotationName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaQualifier.kt")
|
||||
public void testJavaQualifier() throws Exception {
|
||||
|
||||
+6
@@ -3431,6 +3431,12 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaClassWithEmptyAnnotationName.kt")
|
||||
public void testJavaClassWithEmptyAnnotationName() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaClassWithEmptyAnnotationName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaQualifier.kt")
|
||||
public void testJavaQualifier() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user