aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr241861
diff options
context:
space:
mode:
authoraclement <aclement>2008-09-30 20:10:11 +0000
committeraclement <aclement>2008-09-30 20:10:11 +0000
commitaca78f796d64583e8d17aac0bff6f6e502bbafa4 (patch)
tree713361d37a23953376c8f016f38385dff3a5767a /tests/bugs162/pr241861
parent16372a5eae2ef5e9da0df482919acd2ccdb4e85c (diff)
downloadaspectj-aca78f796d64583e8d17aac0bff6f6e502bbafa4.tar.gz
aspectj-aca78f796d64583e8d17aac0bff6f6e502bbafa4.zip
testcode for 241861 and 148508
Diffstat (limited to 'tests/bugs162/pr241861')
-rw-r--r--tests/bugs162/pr241861/Test.java9
-rw-r--r--tests/bugs162/pr241861/X.java9
-rw-r--r--tests/bugs162/pr241861/Y.java9
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs162/pr241861/Test.java b/tests/bugs162/pr241861/Test.java
new file mode 100644
index 000000000..be9ca0201
--- /dev/null
+++ b/tests/bugs162/pr241861/Test.java
@@ -0,0 +1,9 @@
+class Test<O> {
+ O field;
+}
+
+class P {
+ public static void main(String[] argv) {
+ new Test<Integer>().field = 42;
+ }
+}
diff --git a/tests/bugs162/pr241861/X.java b/tests/bugs162/pr241861/X.java
new file mode 100644
index 000000000..e633386ef
--- /dev/null
+++ b/tests/bugs162/pr241861/X.java
@@ -0,0 +1,9 @@
+aspect Asp {
+ before(): execution(new(Integer,..)) {}
+}
+
+class Outer {
+ public class Inner {
+ Inner(Integer arg) {}
+ }
+}
diff --git a/tests/bugs162/pr241861/Y.java b/tests/bugs162/pr241861/Y.java
new file mode 100644
index 000000000..da4eb96c6
--- /dev/null
+++ b/tests/bugs162/pr241861/Y.java
@@ -0,0 +1,9 @@
+aspect Asp {
+ before(): execution(new(String)) {}
+}
+
+class Outer {
+ public class Inner {
+ Inner(String arg) {}
+ }
+}