1 // Extended regression test for the PR 179.
3 // This tests the ".class" language syntax, initialization behaviour for
4 // Class.isInstance() and Class.isAssignableFrom(), and isAssignableFrom()
5 // functionality in the event that an interface argument that is not
6 // implemented by any loaded class is given.
7 // Note that the desired output changed from 1.4 to 1.5.
13 System
.out
.println("A initialized");
23 System
.out
.println("B initialized");
31 System
.out
.println("C initialized");
39 public static void main(String
[] args
)
41 System
.out
.println (A
.class.isAssignableFrom (Object
.class));
42 System
.out
.println (IB
.class.isAssignableFrom (B
.class));
43 System
.out
.println (IA
.class.isAssignableFrom (B
.class));
45 System
.out
.println (C
.class.isInstance (a
));
47 System
.out
.println (C
.class.isInstance (c
));