xref: /aosp_15_r20/external/google-smali/examples/RecursiveAnnotation/RecursiveAnnotation.smali (revision 37f5703ca959d1ce24046e7595880d209e15c133)
1*37f5703cSAndroid Build Coastguard Worker.class public abstract interface annotation LRecursiveAnnotation;
2*37f5703cSAndroid Build Coastguard Worker.super Ljava/lang/Object;
3*37f5703cSAndroid Build Coastguard Worker.implements Ljava/lang/annotation/Annotation;
4*37f5703cSAndroid Build Coastguard Worker
5*37f5703cSAndroid Build Coastguard Worker#this is a recursive annotation that has a default value of itself.
6*37f5703cSAndroid Build Coastguard Worker#Trying to print .toString() on an instance of this annotation
7*37f5703cSAndroid Build Coastguard Worker#will cause a stack overflow
8*37f5703cSAndroid Build Coastguard Worker
9*37f5703cSAndroid Build Coastguard Worker.method public abstract value()LRecursiveAnnotation;
10*37f5703cSAndroid Build Coastguard Worker.end method
11*37f5703cSAndroid Build Coastguard Worker
12*37f5703cSAndroid Build Coastguard Worker.annotation system Ldalvik/annotation/AnnotationDefault;
13*37f5703cSAndroid Build Coastguard Worker    value = .subannotation LRecursiveAnnotation;
14*37f5703cSAndroid Build Coastguard Worker                value = .subannotation LRecursiveAnnotation;
15*37f5703cSAndroid Build Coastguard Worker                        .end subannotation
16*37f5703cSAndroid Build Coastguard Worker            .end subannotation
17*37f5703cSAndroid Build Coastguard Worker.end annotation
18*37f5703cSAndroid Build Coastguard Worker
19