1 2 3 4 5 6 7 8 9 10 11 12 13
package p; import org.aspectj.testing.Tester; public class InterfaceAndClass { public static void main(String[] args) { Tester.checkEqual(I.type, I.class, "same class"); } } interface I { public final Class type = I.class; }