--- /dev/null
+package business;
+
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+
+public class AA {
+
+ public void foo(long docId, String userid) {
+ }
+
+ public static void main(String[] args) {
+ new AA().foo(12, "hello");
+ }
+}
+
+@Aspect
+class Asp {
+
+ @Around("execution(* foo(..))")
+ public Object around(ProceedingJoinPoint pjp) {
+ return pjp.proceed();
+ }
+}
+
--- /dev/null
+package business;
+
+public class CC {
+
+ public void foo(long docId, String userid) {
+ }
+
+ public static void main(String[] args) {
+ new CC().foo(12, "hello");
+ }
+}
+
+aspect Asp {
+
+ Object around(): execution(* foo(..)) {
+ return proceed();
+ }
+}
+
public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testAnnoStyleLong_pr266564() {
+ runTest("annotation style long");
+ }
+
+ public void testAnnoStyleLong_pr266564_2() {
+ runTest("annotation style long - 2");
+ }
+
public void testUnusedPrivateWarning_pr266420() {
runTest("unused private warning");
}
<suite>
+ <ajc-test dir="bugs164/pr266564" title="annotation style long">
+ <compile files="AA.java" options="-1.5"/>
+ <run class="business.AA"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs164/pr266564" title="annotation style long - 2">
+ <compile files="CC.java" options="-1.5"/>
+ <run class="business.CC"/>
+ </ajc-test>
+
<ajc-test dir="bugs164/pr266420" title="unused private warning">
<compile files="A.java" options="-1.5 -warn:unusedPrivate"/>
</ajc-test>