mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复当注解存在循环引用时报错的问题
This commit is contained in:
@@ -572,6 +572,7 @@ public class AnnotatedElementUtilTest {
|
||||
|
||||
// ================= interface =================
|
||||
|
||||
@Annotation6
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
private @interface Annotation5 {}
|
||||
|
@@ -170,6 +170,7 @@ public class MetaAnnotatedElementTest {
|
||||
Assert.assertSame(source, element.getElement());
|
||||
}
|
||||
|
||||
@Annotation4 // 循环引用
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
private @interface None { }
|
||||
|
@@ -199,6 +199,7 @@ public class RepeatableMetaAnnotatedElementTest {
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
private @interface Annotation3 { }
|
||||
|
||||
@Annotation4 // 循环引用
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
private @interface Annotation4 { }
|
||||
|
Reference in New Issue
Block a user