aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs151
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-17 13:35:01 +0000
committeraclement <aclement>2006-01-17 13:35:01 +0000
commit86797879e8c484fdeea87ea2e8304a3354af1e1e (patch)
tree5db9284b8ede251aec4a7de4724a4283ea29b13e /tests/bugs151
parent8b6fbd3ae387e8746cd24184e747d3f8acef3dc2 (diff)
downloadaspectj-86797879e8c484fdeea87ea2e8304a3354af1e1e.tar.gz
aspectj-86797879e8c484fdeea87ea2e8304a3354af1e1e.zip
testcode for 124105
Diffstat (limited to 'tests/bugs151')
-rw-r--r--tests/bugs151/pr124105/com/test/IOption.java9
-rw-r--r--tests/bugs151/pr124105/com/test/IXOption.java17
-rw-r--r--tests/bugs151/pr124105/com/test/IYOption.java34
-rw-r--r--tests/bugs151/pr124105/com/test/IZOption.java4
-rw-r--r--tests/bugs151/pr124105/com/test/MyBrokenXOption.java10
-rw-r--r--tests/bugs151/pr124105/com/test/MyXOption.java9
-rw-r--r--tests/bugs151/pr124105/com/test/OptionAspect.aj11
-rw-r--r--tests/bugs151/pr124105/com/test/OptionType.java9
8 files changed, 103 insertions, 0 deletions
diff --git a/tests/bugs151/pr124105/com/test/IOption.java b/tests/bugs151/pr124105/com/test/IOption.java
new file mode 100644
index 000000000..38cda6976
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/IOption.java
@@ -0,0 +1,9 @@
+package com.test;
+
+
+
+
+
+public interface IOption {
+
+}
diff --git a/tests/bugs151/pr124105/com/test/IXOption.java b/tests/bugs151/pr124105/com/test/IXOption.java
new file mode 100644
index 000000000..afddf596a
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/IXOption.java
@@ -0,0 +1,17 @@
+package com.test;
+
+
+
+
+
+
+
+
+
+
+
+
+
+public interface IXOption extends IOption {
+
+}
diff --git a/tests/bugs151/pr124105/com/test/IYOption.java b/tests/bugs151/pr124105/com/test/IYOption.java
new file mode 100644
index 000000000..324d1c9e1
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/IYOption.java
@@ -0,0 +1,34 @@
+package com.test;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+public interface IYOption extends IOption {
+
+}
diff --git a/tests/bugs151/pr124105/com/test/IZOption.java b/tests/bugs151/pr124105/com/test/IZOption.java
new file mode 100644
index 000000000..39b1e29f4
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/IZOption.java
@@ -0,0 +1,4 @@
+package com.test;
+public interface IZOption extends IOption {
+
+}
diff --git a/tests/bugs151/pr124105/com/test/MyBrokenXOption.java b/tests/bugs151/pr124105/com/test/MyBrokenXOption.java
new file mode 100644
index 000000000..d718d2327
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/MyBrokenXOption.java
@@ -0,0 +1,10 @@
+package com.test;
+
+
+public class MyBrokenXOption implements IXOption {
+
+ public MyBrokenXOption() {
+ super();
+ }
+
+}
diff --git a/tests/bugs151/pr124105/com/test/MyXOption.java b/tests/bugs151/pr124105/com/test/MyXOption.java
new file mode 100644
index 000000000..5cd84042a
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/MyXOption.java
@@ -0,0 +1,9 @@
+package com.test;
+
+public class MyXOption implements IXOption {
+
+ public MyXOption(OptionType optionType) {
+ super();
+ }
+
+}
diff --git a/tests/bugs151/pr124105/com/test/OptionAspect.aj b/tests/bugs151/pr124105/com/test/OptionAspect.aj
new file mode 100644
index 000000000..e7effecec
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/OptionAspect.aj
@@ -0,0 +1,11 @@
+package com.test;
+
+public aspect OptionAspect {
+ interface IBadOptionSubtype {};
+
+ declare parents : (IOption+ && !IOption && !IXOption && !IYOption && !IZOption) && !hasmethod(new(OptionType))
+ implements IBadOptionSubtype;
+
+ declare error : staticinitialization(IOption+ && IBadOptionSubtype+)
+ : "IOption implementations must provide a constructor which accepts an OptionType";
+}
diff --git a/tests/bugs151/pr124105/com/test/OptionType.java b/tests/bugs151/pr124105/com/test/OptionType.java
new file mode 100644
index 000000000..ba4dfbf57
--- /dev/null
+++ b/tests/bugs151/pr124105/com/test/OptionType.java
@@ -0,0 +1,9 @@
+package com.test;
+
+public class OptionType {
+
+ public OptionType() {
+ super();
+ }
+
+}