Community
Participate
Working Groups
When running the code below, get message ------- java.lang.VerifyError: (class: Privilege, method: main signature: ([Ljava/lang/String;)V) Incompatible argument to function ------- Code in tests/new/verifyError/Privilege.java: ------- import org.aspectj.testing.Tester; class C { private int i; } privileged aspect A { private int C.j = 1; } public privileged aspect Privilege { public static void main(String[] args) { C c = new C(); Tester.check(1 == c.j, "wrong value for c.j"); } }
P1 as runtime VerifyError.
fixed in tree, test expanded minimally to cover static fields and methods