From 6f10470e3deeed9756072b5f5cf8cd741bba7681 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 10 Dec 2011 01:06:23 +0000 Subject: [PATCH] e37 related changes --- tests/java5/generics/pointcuts/CallWithBridgeMethods.aj | 9 +++++---- 1 file 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!"; -- 2.39.5