summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/NonConstants.java
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-16 18:51:06 +0000
committerwisberg <wisberg>2002-12-16 18:51:06 +0000
commit144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch)
treeb12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/pureJava/NonConstants.java
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/pureJava/NonConstants.java')
-rw-r--r--tests/pureJava/NonConstants.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/pureJava/NonConstants.java b/tests/pureJava/NonConstants.java
new file mode 100644
index 000000000..f3d1468f4
--- /dev/null
+++ b/tests/pureJava/NonConstants.java
@@ -0,0 +1,20 @@
+public class NonConstants {
+ private static final int A = 1;
+ private static final int B = 2;
+ private static final int C = 3;
+ private static final int D = 4;
+ private static final int E = 5;
+
+ public static void main(String[] args) {
+ NonConstants nc = new NonConstants();
+ int x = 10;
+
+ switch(x) {
+ case (NonConstants).A: break;
+ case ((NonConstants)null).B: break; //ERR
+ case (nc).C: break; //ERR
+ case nc.D: break; //ERR
+ case ((((NonConstants)))).E: break;
+ }
+ }
+}