blob: 55b0dbe8f4a1c59da6540a506e55301077ca1ceb [file] [log] [blame]
jeffhao5d1ac922011-09-29 17:41:15 -07001Method name is myMethod
2 Declaring class is Target
3 Arg 0: int
4 Exc 0: java.lang.NullPointerException
5 Exc 1: java.io.IOException
6 Return type is int
7 Access flags are 0x1
8Method name is myMethod
9 Declaring class is SuperTarget
10 Arg 0: float
11 Return type is int
12 Access flags are 0x1
13Method name is myNoargMethod
14 Declaring class is Target
15 Return type is void
16 Access flags are 0x9
17Method name is myMethod
18 Declaring class is Target
19 Arg 0: [Ljava.lang.String;
20 Arg 1: float
21 Arg 2: char
22 Return type is int
23 Access flags are 0x1
24SuperTarget constructor ()V
25Target constructor ()V
26Before, float is 3.1415925
27myMethod: hi there 3.1415925 Q !
28Result of invoke: 7
29Calling no-arg void-return method
30myNoargMethod ()V
31throwingMethod
32Invoke got expected exception:
33java.lang.reflect.InvocationTargetException
34java.lang.NullPointerException: gratuitous throw!
35
36Field name is string1
37 Declaring class is Target
38 Field type is java.lang.String
39 Access flags are 0x1
40 string1 value is 'hey'
41 ::: hey:yo:there
42 string1 value is now 'a new string'
43 ::: a new string:yo:there
44 got expected illegal obj store exc
45 got the other expected access exc
46 got expected arg exc
47pubLong initial value is 1122334455667788
48pubLong new value is 9988776655443322
49Field name is superInt
50 Declaring class is SuperTarget
51 Field type is int
52 Access flags are 0x1
53 superInt value is 1010101
54 superInt boxed is 1010101
55 superInt value is now 20202
56 superInt value (from short) is now 30303
57 superInt value is now 40404
58 got expected long->int failure
59 got expected long->int failure
60 got expected string->int failure
61 got expected int->short failure
62Field name is superClassInt
63 Declaring class is SuperTarget
64 Field type is int
65 Access flags are 0x9
66 superClassInt value is 1010102
67Field name is staticDouble
68 Declaring class is Target
69 Field type is double
70 Access flags are 0x9
71 staticDoubleVal value is 3.3
72 got expected double->long failure
73as expected: aPrivateInt not found
74Field name is constantString
75 Declaring class is Target
76 Field type is java.lang.String
77 Access flags are 0x19
78 Constant test value is a constant string
79Field name is cantTouchThis
80 Declaring class is Target
81 Field type is int
82 Access flags are 0x11
83 cantTouchThis is 77
Jeff Hao11d5d8f2014-03-26 15:08:20 -070084 as expected: set-final throws exception
85 cantTouchThis is still 77
Brian Carlstromea46f952013-07-30 01:26:50 -070086 public final int Target.cantTouchThis accessible=false
87 public final int Target.cantTouchThis accessible=true
Elliott Hughes582a7d12011-10-10 18:38:42 -070088 cantTouchThis is now 87
jeffhao5d1ac922011-09-29 17:41:15 -070089 cantTouchThis is now 88
90cons modifiers=1
91SuperTarget constructor ()V
92Target constructor (IF)V : ii=7 ff=3.3333
93myMethod (I)I
94 arg=17 anInt=7
95ReflectTest done!
Elliott Hughes741b5b72012-01-31 19:18:51 -080096public method
Brian Carlstromea46f952013-07-30 01:26:50 -070097static java.lang.Object java.util.Collections.checkType(java.lang.Object,java.lang.Class) accessible=false
98static java.lang.Object java.util.Collections.checkType(java.lang.Object,java.lang.Class) accessible=true
jeffhao5d1ac922011-09-29 17:41:15 -070099checkType invoking null
100checkType got expected exception
Elliott Hughes923e8b82012-03-23 11:44:07 -0700101calling const-class FieldNoisyInitUser.class
102called const-class FieldNoisyInitUser.class
103got fields
104got field
105FieldNoisyInitUser is initializing
106read field value
107FieldNoisyInit is initializing
108
109calling const-class MethodNoisyInitUser.class
110called const-class MethodNoisyInitUser.class
jeffhao5d1ac922011-09-29 17:41:15 -0700111got methods
Elliott Hughes923e8b82012-03-23 11:44:07 -0700112got method
113MethodNoisyInitUser is initializing
114invoked method
115MethodNoisyInit is initializing
Elliott Hughes741b5b72012-01-31 19:18:51 -0800116
117generic field: java.util.List<java.lang.String>
118generic method fancyMethod params='[1] java.util.ArrayList<java.lang.String>' ret='java.util.Map<java.lang.Integer, java.lang.String>'
119generic ctor Main params='[1] java.util.ArrayList<java.lang.Integer>'
Brian Carlstromea46f952013-07-30 01:26:50 -0700120fields are unique
121fields are .equals
122methods are unique
123methods are .equals