@@ -0,0 +1,1550 @@
+/*%0A * Copyright 2002-2006 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.springframework.aop.aspectj.annotation;%0A%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0A%0Aimport org.aspectj.lang.ProceedingJoinPoint;%0Aimport org.springframework.aop.aspectj.AspectJAdviceParameterNameDiscovererTests;%0A%0A/**%0A * @author acolyer%0A * %0A * Additional parameter name discover tests that need Java5.%0A * Yes this will re-run the tests from the superclass, but that%0A * doesn't matter in the grand scheme of things...%0A *%0A */%0Apublic class AspectJAdviceParameterNameDiscoverAnnotationTests extends%0A%09%09AspectJAdviceParameterNameDiscovererTests %7B%0A%0A%09@Retention(RetentionPolicy.RUNTIME)%0A%09@interface MyAnnotation %7B%7D%0A%09%0A%09public void pjpAndAnAnnotation(ProceedingJoinPoint pjp, MyAnnotation ann) %7B%7D%0A%0A%09public void testAnnotationBinding() %7B%0A%09%09assertParameterNames(getMethod(%22pjpAndAnAnnotation%22),%0A%09%09%09%09%22execution(* *(..)) && @annotation(ann)%22,%0A%09%09%09%09new String%5B%5D %7B%22thisJoinPoint%22,%22ann%22%7D);%0A%09%7D%0A%7D%0A

test covering spr-3064 annotation binding scenario