View | Details | Raw Unified | Return to bug 126560
Collapse All | Expand All

(-)src/org/aspectj/systemtest/ajc151/Ajc151Tests.java (+4 lines)
Lines 86-91 Link Here
86
	  runTest("warning when inherited pointcut not made concrete"); 
86
	  runTest("warning when inherited pointcut not made concrete"); 
87
  }
87
  }
88
  
88
  
89
  public void testAtAspectNoInvalidAbsoluteTypeName_pr126560() {
90
	  runTest("@AJ deow doesn't throw an invalidAbsoluteTypeName when specify type in a package");
91
  }
92
  
89
  /*
93
  /*
90
   * Load-time weaving bugs and enhancements
94
   * Load-time weaving bugs and enhancements
91
   */
95
   */
(-)src/org/aspectj/systemtest/ajc151/ajc151.xml (+7 lines)
Lines 142-147 Link Here
142
        <compile files="Pr126316.aj" options="-1.5"/>
142
        <compile files="Pr126316.aj" options="-1.5"/>
143
    </ajc-test>
143
    </ajc-test>
144
    
144
    
145
    <ajc-test dir="bugs151/pr126560" title="@AJ deow doesn't throw an invalidAbsoluteTypeName when specify type in a package">
146
        <compile files="pkg/C.java, pkg/A.java" options="-1.5">
147
          <message kind="error" line="8" text="error"/>
148
          <message kind="warning" line="5" text="warning"/>
149
	    </compile>
150
    </ajc-test>
151
145
    <!-- New features down here... when they arent big enough to have their own test file -->
152
    <!-- New features down here... when they arent big enough to have their own test file -->
146
    
153
    
147
    <ajc-test dir="features151/ptw" title="exposing withintype">
154
    <ajc-test dir="features151/ptw" title="exposing withintype">
(-)bugs151/pr126560/pkg/A.java (+16 lines)
Added Link Here
1
package pkg;
2
3
import org.aspectj.lang.annotation.Aspect;
4
import org.aspectj.lang.annotation.DeclareWarning;
5
import org.aspectj.lang.annotation.DeclareError;
6
7
@Aspect
8
public class A {
9
10
	@DeclareWarning("execution(* C.warningMethod())")
11
    static final String warning = "warning";
12
13
    @DeclareError("execution(* C.badMethod())")
14
    static final String error = "error";
15
	
16
}
(-)bugs151/pr126560/pkg/C.java (+11 lines)
Added Link Here
1
package pkg;
2
3
public class C {
4
5
	public void warningMethod() {
6
	}
7
	
8
	public void badMethod() {
9
	}
10
	
11
}

Return to bug 126560