title: Spring AOP - expression "&&" Not working while combining pointcuts
body: <p><strong>Aspect Class:</strong></p>
  
  <pre><code>@Aspect
  public class LoggingAspect {
  
      @Before("e1() &amp;&amp; e2()")
      public void loggingAdvice(){
          System.out.println("before execution of the method");
      }
  
      @Pointcut("execution(public String com.spring.Employee.getName())")
      public void e1(){}
  
      @Pointcut("execution(public String com.spring.Department.getName())")
      public void e2(){}
  
  }
  </code></pre>
  
  <p><strong>Client Class:</strong></p>
  
  <p>public class AspectClient {</p>
  
  <pre><code>public static void main(String[] args) {
      ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
      Employee emp = (Employee) context.getBean("employee");
      System.out.println(emp.getEmpId());
      System.out.println(emp.getName());
      System.out.println(emp.getDepartment().getName());
  
  }
  
  **Config file:**
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
      xmlns:aop="http://www.springframework.org/schema/aop"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"&gt;
  
  &lt;bean id= "employee" class="com.spring.Employee" autowire="byName"&gt;
  &lt;property name="empId" value="7329" /&gt;
  &lt;property name="name" value="Sagar" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id= "department" class="com.spring.Department" &gt;
  &lt;property name="name" value="ApplicationManagement" /&gt;
  &lt;property name="typeOfProjects" value="Maintenance" /&gt;
  &lt;/bean&gt;
  
  &lt;bean class="com.spring.LoggingAspect"/&gt;
  
  &lt;aop:aspectj-autoproxy /&gt;
  
  &lt;context:annotation-config /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong>Explanation:</strong></p>
  
  <p>@Before("e1() &amp;&amp; e2()")
  When I just call either e1() or e2() individually, it works but not both at same time.
  I dont get any errors., Just the advices are not called.
  I am using spring 3.2.3
  AspectJ and AOP alliance jar files</p>