• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.class public LMain;
2.super Ljava/lang/Object;
3
4#expected output:
5#@AnnotationWithValues(booleanValue=false, byteValue=1, charValue=2, doubleValue=7.0, enumValue=12, floatValue=6.0, intValue=4, longValue=5, methodValue=public static void 10.11(), shortValue=3, stringValue=8, subAnnotationValue=@SubAnnotation(stringValue=9), typeValue=class 10)
6
7
8.method public static main([Ljava/lang/String;)V
9    .registers 3
10
11    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
12
13    const-class v1, LMain;
14    const-class v2, LAnnotationWithValues;
15
16    invoke-virtual {v1, v2}, Ljava/lang/Class;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
17    move-result-object v1
18
19    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
20
21    return-void
22.end method
23
24.annotation runtime LAnnotationWithValues;
25.end annotation
26