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

Collapse All | Expand All

(-)src/org/aspectj/systemtest/ajc150/Ajc150Tests.java (+4 lines)
Lines 618-623 Link Here
618
  public void testVarArgsIITDInConstructor() {
618
  public void testVarArgsIITDInConstructor() {
619
	  runTest("ITD varargs in constructor");
619
	  runTest("ITD varargs in constructor");
620
  }
620
  }
621
   
622
  public void testWeaveInfoMessageForDeclareAtMethodOnITDdMethod() {
623
	  runTest("weaveinfo message for declare at method on an ITDd method");
624
  }
621
  
625
  
622
  // helper methods.....
626
  // helper methods.....
623
  
627
  
(-)src/org/aspectj/systemtest/ajc150/ajc150.xml (+8 lines)
Lines 660-665 Link Here
660
        </compile>
660
        </compile>
661
    </ajc-test> 
661
    </ajc-test> 
662
662
663
    <ajc-test dir="bugs150" title="weaveinfo message for declare at method on an ITDd method">
664
        <compile files="pr113073.java" options="-1.5 -showWeaveInfo">
665
			<message kind="weave" text="Type 'C' (pr113073.java) has intertyped method from 'D' (pr113073.java:'void C.anotherMethod()')"/>
666
			<message kind="weave" text="'public void C.anotherMethod()' (pr113073.java) is annotated with @Annotation method annotation from 'B' (pr113073.java:3)"/>
667
			<message kind="weave" text="Type 'C' (pr113073.java) has intertyped method from 'D' (pr113073.java:'void C.anotherMethod(java.lang.String)')"/>
668
			<message kind="weave" text="'public void C.anotherMethod(String)' (pr113073.java) is annotated with @Annotation method annotation from 'B' (pr113073.java:3)"/>
669
        </compile>
670
    </ajc-test> 
663
671
664
    <!-- ============================================================================ -->
672
    <!-- ============================================================================ -->
665
    <!-- ============================================================================ -->
673
    <!-- ============================================================================ -->
(-)bugs150/pr113073.java (+15 lines)
Added Link Here
1
@interface Annotation{}
2
aspect B {
3
	declare @method : public * C.anotherMethod(..) : @Annotation; // should be woven
4
	declare @method : * someMethod(..) : @Annotation; // should be woven with correct weaveinfo message
5
}
6
7
class C {
8
}
9
10
aspect D {
11
	public void C.anotherMethod(String s) {
12
	}
13
	public void C.anotherMethod() {
14
	}
15
}

Return to bug 113073