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
@@ -0,0 +1,16 @@
package test;
public class ReferenceCycleThroughAnnotation {
@C(B.class)
public class A<T extends Object> {
public void foo() {
}
}
public class B<T extends A<T>> {
}
public @interface C {
public Class<?> value();
}
}