()
| 273 | } |
| 274 | |
| 275 | public void testInterfaceMethodReturnsInterface() { |
| 276 | AnI obj = new AnI(); |
| 277 | obj.name = "testing AnI.I"; |
| 278 | I i = Testpkg.callI(obj); |
| 279 | assertEquals("Want AnI.I to return itself", i.string(), obj.string()); |
| 280 | |
| 281 | runGC(); |
| 282 | |
| 283 | i = Testpkg.callI(obj); |
| 284 | assertEquals("Want AnI.I to return itself", i.string(), obj.string()); |
| 285 | } |
| 286 | |
| 287 | public void testInterfaceMethodReturnsStructPointer() { |
| 288 | final AnI obj = new AnI(); |