title: aspectj: why advice cannot be applied?
body: <p>I've created very basic aspectJ project. I have no idea why advice cannot be applied. </p>
  
  <p>annotation</p>
  
  <pre><code>import java.lang.annotation.*;
  
  @Retention(RetentionPolicy.RUNTIME)  
  @Target(ElementType.METHOD)  
  @Documented  
  public @interface Conditional {  
      String value();  
  }  
  </code></pre>
  
  <p>and aspectJ class:</p>
  
  <pre><code>@Aspect
  public class AspectE {
  
      @Around("call(@Conditional * *.*(..)) &amp;&amp; @annotation(conditional)" )
      public Object condition(ProceedingJoinPoint joinPoint, Conditional conditional) throws Throwable {
  
          System.out.println("entry point says hello!");
          return joinPoint.proceed();
      }
  }
  </code></pre>
  
  <p>main:</p>
  
  <pre><code>public class Main {
  
      @Conditional("")
      public static void main(String[] args) {
          System.out.println("main good morning");
      }
  }
  </code></pre>
  
  <p>Could you please tell me what I should change to receive both messages?</p>