aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-23 12:36:28 +0000
committeraclement <aclement>2005-11-23 12:36:28 +0000
commit504e4300204475cef1254de5d1308863c43b26e7 (patch)
tree5fe583e1f09db52266c33417419572f95df4789b /tests/bugs150
parente05df7e5ac7fb91031d8f98d4b93e361918e4b56 (diff)
downloadaspectj-504e4300204475cef1254de5d1308863c43b26e7.tar.gz
aspectj-504e4300204475cef1254de5d1308863c43b26e7.zip
87525 - new error message (and testcase). Thats all I'm doing on this for 1.5.0
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr87525/A.java5
-rw-r--r--tests/bugs150/pr87525/B.java9
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/bugs150/pr87525/A.java b/tests/bugs150/pr87525/A.java
new file mode 100644
index 000000000..edb3b6924
--- /dev/null
+++ b/tests/bugs150/pr87525/A.java
@@ -0,0 +1,5 @@
+class A {
+
+ private final static int c = 1;
+
+}
diff --git a/tests/bugs150/pr87525/B.java b/tests/bugs150/pr87525/B.java
new file mode 100644
index 000000000..5fbf93a4c
--- /dev/null
+++ b/tests/bugs150/pr87525/B.java
@@ -0,0 +1,9 @@
+privileged aspect B {
+
+ before(A anA):execution(* a()) && this(anA){
+ switch(1){
+ case anA.c: // "case expressions must be constant expressions"
+ }
+ }
+
+}