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:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user