1 .class public LsameFieldNames; 2 .super Ljava/lang/Object; 3 4 # Test multiple fields with the same name and different types. 5 # (Invalid in Java language but valid in bytecode.) 6 .field static public a:D 7 .field static public a:S 8 .field static public a:J 9 .field static public a:F 10 .field static public a:Z 11 .field static public a:I 12 .field static public a:B 13 .field static public a:C 14 .field static public a:Ljava/lang/Integer; 15 .field static public a:Ljava/lang/Long; 16 .field static public a:Ljava/lang/Float; 17 .field static public a:Ljava/lang/Double; 18 .field static public a:Ljava/lang/Boolean; 19 .field static public a:Ljava/lang/Void; 20 .field static public a:Ljava/lang/Short; 21 .field static public a:Ljava/lang/Char; 22 .field static public a:Ljava/lang/Byte; 23 24 # Add some more fields to stress test the sorting for offset assignment. 25 .field static public b:C 26 .field static public c:J 27 .field static public d:C 28 .field static public e:B 29 .field static public f:C 30 .field static public g:J 31 .field static public h:C 32 .field static public i:J 33 .field static public j:I 34 .field static public k:J 35 .field static public l:J 36 .field static public m:I 37 .field static public n:J 38 .field static public o:I 39 .field static public p:Ljava/lang/Integer; 40 .field static public q:I 41 .field static public r:J 42 .field static public s:I 43 .field static public t:Ljava/lang/Integer; 44 .field static public u:I 45 .field static public v:J 46 .field static public w:I 47 .field static public x:Ljava/lang/Integer; 48 .field static public y:I 49 .field static public z:Ljava/lang/Integer; 50 51 .method public static getInt()I 52 .locals 2 53 const/4 v0, 2 54 sput v0, LsameFieldNames;->a:I 55 sget-object v1, LsameFieldNames;->a:Ljava/lang/Integer; 56 const/4 v1, 0 57 if-nez v1, :fail 58 const/4 v0, 7 59 :ret 60 return v0 61 :fail 62 const/4 v0, 0 63 goto :ret 64 .end method 65