From 144143c2970a1e874d74cdbd0f8c622d4282a3c3 Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 16 Dec 2002 18:51:06 +0000 Subject: initial version --- tests/errors/FinalStatic.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/errors/FinalStatic.java (limited to 'tests/errors/FinalStatic.java') diff --git a/tests/errors/FinalStatic.java b/tests/errors/FinalStatic.java new file mode 100644 index 000000000..055e3ecd4 --- /dev/null +++ b/tests/errors/FinalStatic.java @@ -0,0 +1,14 @@ +import org.aspectj.testing.*; + +public class FinalStatic { + public static void main(String[] args) { + new FinalStatic().realMain(args); + } + + public void realMain(String[] args) { + Tester.check(false, "Shouldn't have compiled"); + } + + final static int i = -1; + { i = 13; } +} -- cgit v1.2.3