aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-03-11 23:46:51 +0000
committerjhugunin <jhugunin>2003-03-11 23:46:51 +0000
commitfd1560a8a1c91d1b65c738d4e9163d93700d1f00 (patch)
tree79e8faae79285850656b6b64632ed5900568db03 /tests/new
parentd6b8b38cd0a707741788f8d4fae3850b213f50a4 (diff)
downloadaspectj-fd1560a8a1c91d1b65c738d4e9163d93700d1f00.tar.gz
aspectj-fd1560a8a1c91d1b65c738d4e9163d93700d1f00.zip
fixing Bug 31724
declare warning/error emitted without context and generally providing better error context information
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/declare/DeclareWarningEmpty.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/new/declare/DeclareWarningEmpty.java b/tests/new/declare/DeclareWarningEmpty.java
new file mode 100644
index 000000000..b310022b4
--- /dev/null
+++ b/tests/new/declare/DeclareWarningEmpty.java
@@ -0,0 +1,16 @@
+
+/** @testcase PR#31724 omnibus declare-warning test using default initializers/constructors*/
+public class DeclareWarningEmpty { // CE 3
+
+
+
+
+
+}
+
+aspect A {
+ declare warning: staticinitialization(DeclareWarningEmpty)
+ : "staticinitialization(DeclareWarningEmpty)";
+ declare warning: initialization(DeclareWarningEmpty.new(..))
+ : "initialization(DeclareWarningEmpty)";
+}