()
| 90 | } |
| 91 | |
| 92 | private static void doTest() { |
| 93 | if (loadLazy) { |
| 94 | // anewarray |
| 95 | Lazy[] array = new Lazy[1]; |
| 96 | |
| 97 | // new and invokespecial |
| 98 | Object lazy = new Lazy(); |
| 99 | |
| 100 | // checkcast |
| 101 | array[0] = (Lazy) lazy; |
| 102 | |
| 103 | // instanceof |
| 104 | expect(lazy instanceof Lazy); |
| 105 | |
| 106 | // invokeinterface |
| 107 | expect(array[0].interfaceMethod() == 42); |
| 108 | |
| 109 | // invokestatic |
| 110 | expect(Lazy.staticMethod() == 43); |
| 111 | |
| 112 | // invokevirtual |
| 113 | expect(array[0].virtualMethod() == 44); |
| 114 | |
| 115 | // ldc |
| 116 | expect(Lazy.class == lazy.getClass()); |
| 117 | |
| 118 | // multianewarray |
| 119 | Lazy[][] multiarray = new Lazy[5][6]; |
| 120 | multiarray[2][3] = array[0]; |
| 121 | expect(multiarray[2][3] == array[0]); |
| 122 | |
| 123 | // getfield |
| 124 | expect(array[0].intField == 45); |
| 125 | |
| 126 | // getstatic |
| 127 | expect(Lazy.intStaticField == 46); |
| 128 | |
| 129 | // putfield int |
| 130 | array[0].intField = 47; |
| 131 | expect(array[0].intField == 47); |
| 132 | |
| 133 | // putfield long |
| 134 | array[0].longField = 48; |
| 135 | expect(array[0].longField == 48); |
| 136 | |
| 137 | // putfield object |
| 138 | Object x = new Object(); |
| 139 | array[0].objectField = x; |
| 140 | expect(array[0].objectField == x); |
| 141 | |
| 142 | // putstatic int |
| 143 | array[0].intStaticField = 49; |
| 144 | expect(array[0].intStaticField == 49); |
| 145 | |
| 146 | // putstatic long |
| 147 | array[0].longStaticField = 50; |
| 148 | expect(array[0].longStaticField == 50); |
| 149 |
no test coverage detected