// "public method with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A01{ | |||||
public void a(){} | |||||
} | |||||
aspect B01 { | |||||
declare @method : void A01.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A01.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
//"public method on the aspect that declares @method on it" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
aspect B02 { | |||||
public void a(){} | |||||
declare @method : void B02.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = B02.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
//"public annotated method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A03{ | |||||
@anInterface | |||||
public void a(){} | |||||
} | |||||
aspect B03 { | |||||
public static void main(String [] args){ | |||||
Class c = A03.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public ITD method with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A04{ | |||||
} | |||||
aspect B04 { | |||||
public void A04.a(){} | |||||
declare @method : void A04.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A04.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public annotated ITD method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A05{ | |||||
} | |||||
aspect B05 { | |||||
@anInterface | |||||
public void A05.a(){} | |||||
public static void main(String [] args){ | |||||
Class c = A05.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public ITD-on-itself method with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
aspect B06 { | |||||
public void B06.a(){} | |||||
declare @method : void B06.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = B06.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
//"public annotated ITD-on-itself method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
aspect B07 { | |||||
@anInterface | |||||
public void B07.a(){} | |||||
public static void main(String [] args){ | |||||
Class c = B07.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public method on an Interface with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A08{ | |||||
public void a(); | |||||
} | |||||
aspect B08 { | |||||
declare @method : void A08.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A08.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public annotated method on an Interface" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A09{ | |||||
@anInterface | |||||
public void a(); | |||||
} | |||||
aspect B09 { | |||||
public static void main(String [] args){ | |||||
Class c = A09.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public ITD method onto an Interface with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A10{ | |||||
} | |||||
aspect B10 { | |||||
public void A10.a(){} | |||||
declare @method : void A10.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A10.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
//"public annotated ITD method onto an Interface" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A11{ | |||||
} | |||||
aspect B11 { | |||||
@anInterface | |||||
public void A11.a(){} | |||||
public static void main(String [] args){ | |||||
Class c = A11.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract method with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract class A12{ | |||||
public abstract void a(); | |||||
} | |||||
aspect B12 { | |||||
declare @method : abstract void A12.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A12.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract method on the aspect that declares @method on it" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract aspect A13{ | |||||
public abstract void a(); | |||||
declare @method : abstract void A13.a(..) : @anInterface; | |||||
} | |||||
aspect B13 { | |||||
public static void main(String [] args){ | |||||
Class c = A13.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract annotated method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract class A14{ | |||||
@anInterface | |||||
public abstract void a(); | |||||
} | |||||
aspect B14 { | |||||
public static void main(String [] args){ | |||||
Class c = A14.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract ITD method with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract class A15{ | |||||
} | |||||
aspect B15 { | |||||
public abstract void A15.a(); | |||||
declare @method : abstract void A15.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A15.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract annotated ITD method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract class A16{ | |||||
} | |||||
aspect B16 { | |||||
@anInterface | |||||
public abstract void A16.a(); | |||||
public static void main(String [] args){ | |||||
Class c = A16.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract ITD-on-itself method with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract aspect A17 { | |||||
public abstract void A17.a(); | |||||
declare @method : abstract void A17.a(..) : @anInterface; | |||||
} | |||||
aspect B17 { | |||||
public static void main(String [] args){ | |||||
Class c = A17.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract annotated ITD-on-itself method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
abstract aspect A18 { | |||||
@anInterface | |||||
public abstract void A18.a(); | |||||
} | |||||
aspect B18 { | |||||
public static void main(String [] args){ | |||||
Class c = A18.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
//"public abstract method on an Interface with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A19 { | |||||
public abstract void a(); | |||||
} | |||||
aspect B19 { | |||||
declare @method : abstract void A19.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A19.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract annotated method on an Interface" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A20 { | |||||
@anInterface | |||||
public abstract void a(); | |||||
} | |||||
aspect B20 { | |||||
public static void main(String [] args){ | |||||
Class c = A20.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract ITD method onto an Interface with declare @method" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A21 { | |||||
} | |||||
aspect B21 { | |||||
public abstract void A21.a(); | |||||
declare @method : abstract void A21.a(..) : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A21.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public abstract annotated ITD method onto an Interface" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Method; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
interface A22 { | |||||
} | |||||
aspect B22 { | |||||
@anInterface | |||||
public abstract void A22.a(); | |||||
public static void main(String [] args){ | |||||
Class c = A22.class; | |||||
try { | |||||
Method m = c.getDeclaredMethod("a", new Class [0]); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public field with declare @field" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A23 { | |||||
public int a; | |||||
} | |||||
aspect B23 { | |||||
declare @field : int A23.a : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A23.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public field on the aspect that declares @field on it" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
aspect B24 { | |||||
public int a; | |||||
declare @field : int B24.a : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = B24.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public annotated field" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A25{ | |||||
@anInterface | |||||
public int a; | |||||
} | |||||
aspect B25 { | |||||
public static void main(String [] args){ | |||||
Class c = A25.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public ITD field with declare @field" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A26{ | |||||
} | |||||
aspect B26 { | |||||
public int A26.a; | |||||
declare @field : int A26.a : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = A26.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public annotated ITD field" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
class A27{ | |||||
} | |||||
aspect B27 { | |||||
@anInterface | |||||
public int A27.a; | |||||
public static void main(String [] args){ | |||||
Class c = A27.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public ITD-on-itself field with declare @field" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
aspect B28 { | |||||
public int B28.a; | |||||
declare @field : int B28.a : @anInterface; | |||||
public static void main(String [] args){ | |||||
Class c = B28.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
// "public annotated ITD-on-itself field" | |||||
import java.lang.annotation.*; | |||||
import java.lang.reflect.Field; | |||||
@Retention(RetentionPolicy.RUNTIME) | |||||
@interface anInterface{} | |||||
aspect B29 { | |||||
@anInterface | |||||
public int B29.a; | |||||
public static void main(String [] args){ | |||||
Class c = B29.class; | |||||
try { | |||||
Field m = c.getDeclaredField("a"); | |||||
Annotation [] anns = m.getDeclaredAnnotations(); | |||||
for (int i = 0;i < anns.length;i++){ | |||||
System.out.println(anns[i]); | |||||
} | |||||
} catch (Exception e){ | |||||
System.out.println("exceptional!"); | |||||
} | |||||
} | |||||
} |
package org.aspectj.systemtest.ajc150; | |||||
import java.io.File; | |||||
import junit.framework.Test; | |||||
import org.aspectj.testing.XMLBasedAjcTestCase; | |||||
/** | |||||
* Checking that runtime visible annotations are visible at runtime (they get into the class file) | |||||
*/ | |||||
public class RuntimeAnnotations extends XMLBasedAjcTestCase { | |||||
public static Test suite() { | |||||
return XMLBasedAjcTestCase.loadSuite(RuntimeAnnotations.class); | |||||
} | |||||
protected File getSpecFile() { | |||||
return new File("../tests/src/org/aspectj/systemtest/ajc150/ajc150.xml"); | |||||
} | |||||
public void test01() { | |||||
runTest("public method with declare @method"); | |||||
} | |||||
public void test02() { | |||||
runTest("public method on the aspect that declares @method on it"); | |||||
} | |||||
public void test03() { | |||||
runTest("public annotated method"); | |||||
} | |||||
public void test04() { | |||||
runTest("public ITD method with declare @method"); | |||||
} | |||||
public void test05() { | |||||
runTest("public annotated ITD method"); | |||||
} | |||||
public void test06() { | |||||
runTest("public ITD-on-itself method with declare @method"); | |||||
} | |||||
public void test07() { | |||||
runTest("public annotated ITD-on-itself method"); | |||||
} | |||||
public void test08() { | |||||
runTest("public method on an Interface with declare @method"); | |||||
} | |||||
public void test09() { | |||||
runTest("public annotated method on an Interface"); | |||||
} | |||||
public void test10() { | |||||
runTest("public ITD method onto an Interface with declare @method"); | |||||
} | |||||
public void test11() { | |||||
runTest("public annotated ITD method onto an Interface"); | |||||
} | |||||
public void test12() { | |||||
runTest("public abstract method with declare @method"); | |||||
} | |||||
public void test13() { | |||||
runTest("public abstract method on the aspect that declares @method on it"); | |||||
} | |||||
public void test14() { | |||||
runTest("public abstract annotated method"); | |||||
} | |||||
public void test15() { | |||||
runTest("public abstract ITD method with declare @method"); | |||||
} | |||||
public void test16() { | |||||
runTest("public abstract annotated ITD method"); | |||||
} | |||||
public void test17() { | |||||
runTest("public abstract ITD-on-itself method with declare @method"); | |||||
} | |||||
public void test18() { | |||||
runTest("public abstract annotated ITD-on-itself method"); | |||||
} | |||||
public void test19() { | |||||
runTest("public abstract method on an Interface with declare @method"); | |||||
} | |||||
public void test20() { | |||||
runTest("public abstract annotated method on an Interface"); | |||||
} | |||||
public void test21() { | |||||
runTest("public abstract ITD method onto an Interface with declare @method"); | |||||
} | |||||
public void test22() { | |||||
runTest("public abstract annotated ITD method onto an Interface"); | |||||
} | |||||
public void test23() { | |||||
runTest("public field with declare @field"); | |||||
} | |||||
public void test24() { | |||||
runTest("public field on the aspect that declares @field on it"); | |||||
} | |||||
public void test25() { | |||||
runTest("public annotated field"); | |||||
} | |||||
public void test26() { | |||||
runTest("public ITD field with declare @field"); | |||||
} | |||||
public void test27() { | |||||
runTest("public annotated ITD field"); | |||||
} | |||||
public void test28() { | |||||
runTest("public ITD-on-itself field with declare @field"); | |||||
} | |||||
public void test29() { | |||||
runTest("public annotated ITD-on-itself field"); | |||||
} | |||||
} |
<!-- End of generics tests --> | <!-- End of generics tests --> | ||||
<!-- ============================================================== --> | <!-- ============================================================== --> | ||||
<ajc-test dir="bugs150/pr98901" title="public method with declare @method"> | |||||
<compile files="Case01.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B01"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public method on the aspect that declares @method on it"> | |||||
<compile files="Case02.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B02"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated method"> | |||||
<compile files="Case03.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B03"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public ITD method with declare @method"> | |||||
<compile files="Case04.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B04"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated ITD method"> | |||||
<compile files="Case05.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B05"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself method with declare @method"> | |||||
<compile files="Case06.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B06"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself method"> | |||||
<compile files="Case07.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B07"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public method on an Interface with declare @method"> | |||||
<compile files="Case08.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B08"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated method on an Interface"> | |||||
<compile files="Case09.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B09"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public ITD method onto an Interface with declare @method"> | |||||
<compile files="Case10.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B10"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated ITD method onto an Interface"> | |||||
<compile files="Case11.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B11"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract method with declare @method"> | |||||
<compile files="Case12.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B12"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract method on the aspect that declares @method on it"> | |||||
<compile files="Case13.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B13"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract annotated method"> | |||||
<compile files="Case14.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B14"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method with declare @method"> | |||||
<compile files="Case15.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B15"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD method"> | |||||
<compile files="Case16.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B16"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract ITD-on-itself method with declare @method"> | |||||
<compile files="Case17.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B17"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD-on-itself method"> | |||||
<compile files="Case18.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B18"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract method on an Interface with declare @method"> | |||||
<compile files="Case19.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B19"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract annotated method on an Interface"> | |||||
<compile files="Case20.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B20"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract ITD method onto an Interface with declare @method"> | |||||
<compile files="Case21.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B21"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public abstract annotated ITD method onto an Interface"> | |||||
<compile files="Case22.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B22"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public field with declare @field"> | |||||
<compile files="Case23.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B23"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public field on the aspect that declares @field on it"> | |||||
<compile files="Case24.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B24"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated field"> | |||||
<compile files="Case25.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B25"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public ITD field with declare @field"> | |||||
<compile files="Case26.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B26"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated ITD field"> | |||||
<compile files="Case27.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B27"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public ITD-on-itself field with declare @field"> | |||||
<compile files="Case28.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B28"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs150/pr98901" title="public annotated ITD-on-itself field"> | |||||
<compile files="Case29.aj" options="-1.5 -Xlint:error"/> | |||||
<run class="B29"> | |||||
<stdout> | |||||
<line text="@anInterface()"/> | |||||
</stdout> | |||||
</run> | |||||
</ajc-test> | |||||
</suite> | </suite> |