aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoraclement <aclement>2011-12-10 01:06:23 +0000
committeraclement <aclement>2011-12-10 01:06:23 +0000
commit6f10470e3deeed9756072b5f5cf8cd741bba7681 (patch)
treec033165e522d9df47f427af1ee5013034729fa9f /tests/java5
parent6df6cef16298e1a0687880a955c28ae64eb61006 (diff)
downloadaspectj-6f10470e3deeed9756072b5f5cf8cd741bba7681.tar.gz
aspectj-6f10470e3deeed9756072b5f5cf8cd741bba7681.zip
e37 related changes
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/generics/pointcuts/CallWithBridgeMethods.aj9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/java5/generics/pointcuts/CallWithBridgeMethods.aj b/tests/java5/generics/pointcuts/CallWithBridgeMethods.aj
index 7701a840b..36b5cb217 100644
--- a/tests/java5/generics/pointcuts/CallWithBridgeMethods.aj
+++ b/tests/java5/generics/pointcuts/CallWithBridgeMethods.aj
@@ -20,15 +20,16 @@ public aspect CallWithBridgeMethods {
Generic rawVariableOfSuperType = rawType;
rawVariableOfSuperType.foo("hi"); // this call we go to the bridge method..., but
// appears in the bytecode as Generic.foo(Object)
- rawType.foo("hi"); // this call will go to the bridge method, and
- // appears in the bytecode as SubGeneric.foo(Object)
+ // removed next line - was possible before e37 upgrade, but now can't call it if compiler knows it is wrong
+// rawType.foo((Object)3); // this call will go to the bridge method, and
+// // appears in the bytecode as SubGeneric.foo(Object)
}
declare warning : call(* SubGeneric.foo(..)) && within(SubGeneric)
: "should not match call in bridge method";
- declare warning : call(* SubGeneric.foo(Object))
- : "should match call to bridge method on L23, this is a real call!";
+// declare warning : call(* SubGeneric.foo(Object))
+// : "should match call to bridge method on L23, this is a real call!";
declare warning : execution(* SubGeneric.foo(Object)) && within(SubGeneric)
: "but whilst you can call it, it doesn't execute!";