aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-20 20:47:14 +0000
committeraclement <aclement>2008-08-20 20:47:14 +0000
commitfe2f8cdae5328a768922bebe387492d583901cad (patch)
tree4c37df4f1a0c5d7cf494171c2f848b3005bdbdd7 /tests/bugs152
parent42c0676d7fd909b5efc1cce7f7bcbc9e3c99f4c8 (diff)
downloadaspectj-fe2f8cdae5328a768922bebe387492d583901cad.tar.gz
aspectj-fe2f8cdae5328a768922bebe387492d583901cad.zip
145391: moved tests 152>162 and fixed them
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr145391/GenericType.java38
-rw-r--r--tests/bugs152/pr145391/GenericType2.java37
2 files changed, 0 insertions, 75 deletions
diff --git a/tests/bugs152/pr145391/GenericType.java b/tests/bugs152/pr145391/GenericType.java
deleted file mode 100644
index 897e1b729..000000000
--- a/tests/bugs152/pr145391/GenericType.java
+++ /dev/null
@@ -1,38 +0,0 @@
-public class GenericType<V extends Integer> {
-
- public GenericType(V value) {}
-
- public void foo() {}
-//
-// public void bar() {}
-
- protected V getValue() {
- return null;
- }
-
- public static void main(String[] args) {
- new GenericType<Integer>(null).foo();
- }
-
-}
-
-aspect SomeAspect {
- before(GenericType t): call(* GenericType.foo()) && target(t) {
- // Direct call to non-generic method works
-// t.bar();
- // Indirect call to non-generic method works
-// t.callNormalMethod();
- // Direct call to generic method works
-// t.getValue();
- // Indirect call to generic method produces a NoSuchMethodError
- t.callGenericMethod();
- }
-
-// private void GenericType.callNormalMethod() {
-// bar();
-// }
-
- private void GenericType.callGenericMethod() {
- getValue();
- }
-} \ No newline at end of file
diff --git a/tests/bugs152/pr145391/GenericType2.java b/tests/bugs152/pr145391/GenericType2.java
deleted file mode 100644
index c5c6ab386..000000000
--- a/tests/bugs152/pr145391/GenericType2.java
+++ /dev/null
@@ -1,37 +0,0 @@
-public class GenericType2<V extends Integer> {
-
- public GenericType2(V value) {}
-
- public void foo() {}
-//
-// public void bar() {}
-
- protected void getValue(V aV) {
- }
-
- public static void main(String[] args) {
- new GenericType2<Integer>(null).foo();
- }
-
-}
-
-aspect SomeAspect {
- before(GenericType2 t): call(* GenericType2.foo()) && target(t) {
- // Direct call to non-generic method works
-// t.bar();
- // Indirect call to non-generic method works
-// t.callNormalMethod();
- // Direct call to generic method works
-// t.getValue();
- // Indirect call to generic method produces a NoSuchMethodError
- t.callGenericMethod();
- }
-
-// private void GenericType.callNormalMethod() {
-// bar();
-// }
-
- private void GenericType2.callGenericMethod() {
- getValue(new Integer(45));
- }
-} \ No newline at end of file