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:
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user