blob: fa053fb92d34121fdba3356c3eb3324a0a8e3513 [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
Jeff Hao63f5b9e2014-04-23 14:51:46 -070095got expected exception for Class.newInstance
96got expected exception for Constructor.newInstance
jeffhao5d1ac922011-09-29 17:41:15 -070097ReflectTest done!
Elliott Hughes741b5b72012-01-31 19:18:51 -080098public method
Brian Carlstromea46f952013-07-30 01:26:50 -070099static java.lang.Object java.util.Collections.checkType(java.lang.Object,java.lang.Class) accessible=false
100static java.lang.Object java.util.Collections.checkType(java.lang.Object,java.lang.Class) accessible=true
jeffhao5d1ac922011-09-29 17:41:15 -0700101checkType invoking null
102checkType got expected exception
Elliott Hughes923e8b82012-03-23 11:44:07 -0700103calling const-class FieldNoisyInitUser.class
104called const-class FieldNoisyInitUser.class
105got fields
106got field
107FieldNoisyInitUser is initializing
108read field value
109FieldNoisyInit is initializing
110
111calling const-class MethodNoisyInitUser.class
112called const-class MethodNoisyInitUser.class
jeffhao5d1ac922011-09-29 17:41:15 -0700113got methods
Elliott Hughes923e8b82012-03-23 11:44:07 -0700114got method
115MethodNoisyInitUser is initializing
116invoked method
117MethodNoisyInit is initializing
Elliott Hughes741b5b72012-01-31 19:18:51 -0800118
119generic field: java.util.List<java.lang.String>
120generic method fancyMethod params='[1] java.util.ArrayList<java.lang.String>' ret='java.util.Map<java.lang.Integer, java.lang.String>'
121generic ctor Main params='[1] java.util.ArrayList<java.lang.Integer>'
Brian Carlstromea46f952013-07-30 01:26:50 -0700122fields are unique
123fields are .equals
124methods are unique
125methods are .equals
Piotr Jastrzebski68b539e2014-08-06 12:02:48 +0100126type1 is a ParameterizedType
127type2 is a ParameterizedType
128type3 is a ParameterizedType
129type1(java.util.Set<java.lang.String>) equals type2(java.util.Set<java.lang.String>)
130type1(java.util.Set<java.lang.String>) equals type3(java.util.Set<java.lang.String>)
131type1(java.util.Set<java.lang.String>) hashCode equals type2(java.util.Set<java.lang.String>) hashCode
132type1(java.util.Set<java.lang.String>) hashCode equals type3(java.util.Set<java.lang.String>) hashCode
133type1 is a GenericArrayType
134type2 is a GenericArrayType
135type3 is a GenericArrayType
136type1(T[]) equals type2(T[])
137type1(T[]) equals type3(T[])
138type1(T[]) hashCode equals type2(T[]) hashCode
139type1(T[]) hashCode equals type3(T[]) hashCode