From: aclement Date: Sat, 10 Dec 2011 01:06:23 +0000 (+0000) Subject: e37 related changes X-Git-Tag: V1_7_0RC1~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f10470e3deeed9756072b5f5cf8cd741bba7681;p=aspectj.git e37 related changes --- 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!";