View | Details | Raw Unified | Return to bug 128237 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/aspectj/systemtest/ajc151/Ajc151Tests.java (+4 lines)
Lines 168-173 Link Here
168
	  runTest("@AJ declare parents retains field state");
168
	  runTest("@AJ declare parents retains field state");
169
  }
169
  }
170
  
170
  
171
  public void testAtAspectNoNPEWithPcdContainingOrThisAndWildcard_pr128237() {
172
	  runTest("@AJ no npe with pointcut containing or, this and a wildcard");
173
  }
174
  
171
  /*
175
  /*
172
   * Load-time weaving bugs and enhancements
176
   * Load-time weaving bugs and enhancements
173
   */
177
   */
(-)src/org/aspectj/systemtest/ajc151/ajc151.xml (+4 lines)
Lines 193-198 Link Here
193
        </run>
193
        </run>
194
    </ajc-test>
194
    </ajc-test>
195
195
196
    <ajc-test dir="bugs151" title="@AJ no npe with pointcut containing or, this and a wildcard">
197
        <compile files="pr128237.java" options="-1.5"/>
198
    </ajc-test>
199
196
    <!-- New features down here... when they arent big enough to have their own test file -->
200
    <!-- New features down here... when they arent big enough to have their own test file -->
197
    
201
    
198
    <ajc-test dir="features151/ptw" title="exposing withintype">
202
    <ajc-test dir="features151/ptw" title="exposing withintype">
(-)bugs151/pr128237.java (+29 lines)
Added Link Here
1
import org.aspectj.lang.JoinPoint;
2
import org.aspectj.lang.annotation.Aspect;
3
import org.aspectj.lang.annotation.Before;
4
import org.aspectj.lang.annotation.Pointcut;
5
6
@Aspect
7
class AbstractTracer 
8
{
9
	
10
    @Pointcut("(execution(public * Foo.anotherMethod*(..)) || execution(public * Foo.methodA(..))) && this(obj)")
11
    protected void methodExec(Object obj){};
12
        
13
    @Before("methodExec(obj)")
14
    public void beforeMethodExec(JoinPoint thisJoinPoint, Object obj) {
15
      	System.out.println("Before " + thisJoinPoint.getSignature().toString());
16
    }
17
	
18
}
19
20
21
class Foo {
22
23
	public void methodA() {
24
	}
25
	
26
	public void anotherMethod() {
27
	}
28
	
29
}

Return to bug 128237