FIR: convert Java type parameter bounds before reading annotations

This avoids a crash due to circular class references through annotation
arguments.
This commit is contained in:
pyos
2022-09-15 11:48:33 +02:00
committed by teamcity
parent 04dae17333
commit 5ba76ee757
11 changed files with 108 additions and 12 deletions
@@ -226,6 +226,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
runTest("compiler/testData/loadJava/compiledJava/RecursiveWildcardUpperBound.java");
}
@TestMetadata("ReferenceCycleThroughAnnotation.java")
public void testReferenceCycleThroughAnnotation() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/ReferenceCycleThroughAnnotation.java");
}
@TestMetadata("RemoveRedundantProjectionKind.java")
public void testRemoveRedundantProjectionKind() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/RemoveRedundantProjectionKind.java");
@@ -224,6 +224,11 @@ public class LoadJavaWithPsiClassReadingTestGenerated extends AbstractLoadJavaWi
runTest("compiler/testData/loadJava/compiledJava/RecursiveWildcardUpperBound.java");
}
@TestMetadata("ReferenceCycleThroughAnnotation.java")
public void testReferenceCycleThroughAnnotation() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/ReferenceCycleThroughAnnotation.java");
}
@TestMetadata("RemoveRedundantProjectionKind.java")
public void testRemoveRedundantProjectionKind() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/RemoveRedundantProjectionKind.java");
@@ -227,6 +227,11 @@ public class IrLoadJavaTestGenerated extends AbstractIrLoadJavaTest {
runTest("compiler/testData/loadJava/compiledJava/RecursiveWildcardUpperBound.java");
}
@TestMetadata("ReferenceCycleThroughAnnotation.java")
public void testReferenceCycleThroughAnnotation() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/ReferenceCycleThroughAnnotation.java");
}
@TestMetadata("RemoveRedundantProjectionKind.java")
public void testRemoveRedundantProjectionKind() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/RemoveRedundantProjectionKind.java");
@@ -226,6 +226,11 @@ public class LoadJavaUsingJavacTestGenerated extends AbstractLoadJavaUsingJavacT
runTest("compiler/testData/loadJava/compiledJava/RecursiveWildcardUpperBound.java");
}
@TestMetadata("ReferenceCycleThroughAnnotation.java")
public void testReferenceCycleThroughAnnotation() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/ReferenceCycleThroughAnnotation.java");
}
@TestMetadata("RemoveRedundantProjectionKind.java")
public void testRemoveRedundantProjectionKind() throws Exception {
runTest("compiler/testData/loadJava/compiledJava/RemoveRedundantProjectionKind.java");