]> source.dussan.org Git - aspectj.git/commitdiff
e37 related changes
authoraclement <aclement>
Sat, 10 Dec 2011 01:06:23 +0000 (01:06 +0000)
committeraclement <aclement>
Sat, 10 Dec 2011 01:06:23 +0000 (01:06 +0000)
tests/java5/generics/pointcuts/CallWithBridgeMethods.aj

index 7701a840bd5f74556d910457e4f168f8e70c3483..36b5cb21786b493c22e275e60c904709b24686a1 100644 (file)
@@ -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!";