title: AOP programming - ProceedingJoinPoint is only supported for around advice
body: <p>I am having this exception while deploying my new aspect:</p>
  
  <pre><code>@Aspect
  public class MyAspect {
  
      @Before("@annotation(PreAuthorizeAccess)")
      public Object tessst(ProceedingJoinPoint joinPoint) throws Throwable {
          for (Object object : joinPoint.getArgs()) {
              int a = 0;
          }
          return joinPoint.proceed();
      }
  }
  </code></pre>
  
  <blockquote>
    <p>Caused by: java.lang.IllegalArgumentException: ProceedingJoinPoint is only
    supported for around advice   at
    org.springframework.aop.aspectj.AbstractAspectJAdvice.maybeBindProceedingJoinPoint(AbstractAspectJAdvice.java:414)
    ~[spring-aop-5.1.7.RELEASE.jar:5.1.7.RELEASE]     at
    org.springframework.aop.aspectj.AbstractAspectJAdvice.calculateArgumentBindings(AbstractAspectJAdvice.java:388)
    ~[spring-aop-5.1.7.RELEASE.jar:5.1.7.RELEASE]</p>
  </blockquote>
  
  <p>I want to intercept all methods annotated with <code>@PreAuthorizeAccess</code> and change something in myObject, like this:</p>
  
  <pre><code>@PreAuthorizeAccess
  public MyObject save(@Param("argument") MyObject myObject) {
  </code></pre>