--- /dev/null
+package pkg;
+
+public privileged aspect A {
+
+ public static int F_PRIVILEGED = 0x8000;
+
+ before() : execution(int AbstractClass.getModifiers()) {
+ int i = F_PRIVILEGED;
+ }
+}
--- /dev/null
+package pkg;
+
+public abstract class AbstractClass {
+
+ public int getModifiers() {
+ return 1;
+ }
+
+ public void handleFieldChanged() {
+
+ }
+
+}
--- /dev/null
+package pkg;
+
+public privileged aspect A {
+
+ public static int AbstractClass.F_PRIVILEGED = 0x8000;
+
+ before() : execution(int AbstractClass.getModifiers()) {
+ int i = AbstractClass.F_PRIVILEGED;
+ }
+}
--- /dev/null
+package pkg;
+
+public abstract class AbstractClass {
+
+ public int getModifiers() {
+ return 1;
+ }
+
+ public void handleFieldChanged2() {
+
+ }
+
+}
--- /dev/null
+package pkg;
+
+public privileged aspect A {
+
+ public static int AbstractClass.F_PRIVILEGED = 0x8000;
+
+ //int i = AbstractClass.F_PRIVILEGED;
+
+}
--- /dev/null
+package pkg;
+
+public class AbstractClass {
+//
+// public int getModifiers() {
+// return 1;
+// }
+//
+// public void handleFieldChanged() {
+//
+// }
+//
+}
--- /dev/null
+package pkg;
+
+public privileged aspect A {
+
+ public static int AbstractClass.F_PRIVILEGED = 0x8000;
+
+ before() : execution(int AbstractClass.getModifiers()) {
+ int i = AbstractClass.F_PRIVILEGED;
+ }
+}
--- /dev/null
+package pkg;
+
+public class AbstractClass {
+//
+// public int getModifiers() {
+// return 1;
+// }
+//
+// public void handleFieldChanged2() {
+//
+// }
+ public void foo() {}
+}