aboutsummaryrefslogtreecommitdiffstats
path: root/tests/warnings
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/warnings
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/warnings')
-rw-r--r--tests/warnings/NotFoundTypeName.java28
-rw-r--r--tests/warnings/NotFoundTypeNameInDirectory.java3
-rw-r--r--tests/warnings/NotFoundTypeNameInDirectory2.java5
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/warnings/NotFoundTypeName.java b/tests/warnings/NotFoundTypeName.java
new file mode 100644
index 000000000..979a20fb7
--- /dev/null
+++ b/tests/warnings/NotFoundTypeName.java
@@ -0,0 +1,28 @@
+aspect NotFoundTypeName {
+
+ pointcut foo1(): this(X); // this should be a warning under -Xlint
+
+ pointcut foo2(): this(java.util.*); // NOT a warning
+ pointcut foo3(): this(*..TimeZone); // NOT a warning
+
+ pointcut foo4(): this(java.util.X*Y); // this should be a warning under -Xlint
+ pointcut foo5(): this(java.XYZ*.*); // this should be a warning under -Xlint
+
+
+ pointcut foo6(): this(X*Y); // this should be a warning under -Xlint
+
+ pointcut foo7(): this(NotFound*Name); // NOT a warning
+
+ pointcut foo8(): this(NotFoundTypeNameInDirectory); // NOT a warning
+
+ pointcut foo9a(): this(a.b.c.NotFoundTypeNameInDirectory2); // NOT a warning
+
+ pointcut foo9b(): this(*..NotFoundTypeNameInDirectory2); // NOT a warning
+
+ pointcut foo10(): this(a.b.c.Ningo*); // this should be a warning under -Xlint
+
+ public static void main(String[] args) {
+ System.out.println("not found");
+ }
+}
+
diff --git a/tests/warnings/NotFoundTypeNameInDirectory.java b/tests/warnings/NotFoundTypeNameInDirectory.java
new file mode 100644
index 000000000..f5c0c3921
--- /dev/null
+++ b/tests/warnings/NotFoundTypeNameInDirectory.java
@@ -0,0 +1,3 @@
+class NotFoundTypeNameInDirectory {
+}
+
diff --git a/tests/warnings/NotFoundTypeNameInDirectory2.java b/tests/warnings/NotFoundTypeNameInDirectory2.java
new file mode 100644
index 000000000..1f4e2aca0
--- /dev/null
+++ b/tests/warnings/NotFoundTypeNameInDirectory2.java
@@ -0,0 +1,5 @@
+package a.b.c;
+
+class NotFoundTypeNameInDirectory2 {
+}
+