1 interface I { } 2 3 class A implements I { } 4 5 public class IVoke { 6 7 public static void test(I i) { 8 // the use of i.getClass() leads to problem 9 System.out.println(i.getClass()); 10 } 11 12 static public void main (String[] args) { 13 I a = new A(); 14 test(a); 15 } 16 } 17