--- /dev/null
+import java.util.*;
+
+public class CtorA {
+ public static void main(String []argv) {
+ List<Integer> intList = new ArrayList<Integer>();
+ Base<Integer> base = new Base<Integer>(intList);
+ }
+}
+
+class Base<N extends Number> {
+ public Base() {}
+ <Y extends Number> Base(Set<N> sn, List<Y> ys) {}
+}
+
+aspect X {
+ public Base<Z>.new(List<Z> lz) { this(); } // OK, Z becomes N in parameter
+}
+
--- /dev/null
+public class SimpleA {
+}
--- /dev/null
+public class SimpleB {
+ public static void main(String []argv) {
+ }
+}
--- /dev/null
+public aspect SimpleC {
+}
--- /dev/null
+public aspect SimpleD {
+ before(): execution(* foo(..)) {}
+
+ public void foo() {}
+}
--- /dev/null
+public aspect SimpleE {
+ public int Test.i;
+}
+
+class Test {
+}
--- /dev/null
+
+public aspect SimpleF {
+ public static void main(String[] args) { test(); }
+
+ pointcut sendHeader():
+ call(void *.*(String));
+
+/*
+ before(): call(* foo(..)) {
+ aspectField += s;
+ }
+*/
+
+ public static void test() {
+ }
+}
--- /dev/null
+aspect SimpleG pertarget(target(String)) {
+ public int num;
+ public static void main(String[]argv){}
+}
--- /dev/null
+import java.util.*;
+
+class Base {
+
+}
+
+public class SimpleH {
+ public static void main(String[] argv) {
+ List<Double> l1 = new ArrayList<Double>();
+ Base b2 = new Base(l1);
+ }
+}
+
+aspect X {
+ public <P extends Number> Base.new(List<P> lr) { this(); }
+}
--- /dev/null
+import java.util.*;
+
+interface I {}
+
+class Sub implements I {}
+
+class Sub2 implements I {
+ public <N extends Number> int publicMethod(List<N> ns) { return 0; }
+}
+
+public aspect SimpleI {
+ public static void main(String []argv) { }
+
+ public <N extends Number> int I.publicMethod(List<N> ns) { return ns.size(); }
+}
+
+
--- /dev/null
+public class SimpleJ {
+}
+
+class A {
+ public void m() {}
+ public int m2() { return 42;}
+}
--- /dev/null
+import org.aspectj.lang.annotation.*;
+
+public class SimpleN {
+ public static void main(String[]argv) {
+ new A().m(1,2,3);
+ }
+}
+
+class A {
+ public void m(int p,int q,int r) {
+ String s= "Hello";
+ if (s.equals("five")) {
+ int i = 5;
+ System.out.println("Je suis ici "+i);
+ i = i + 6;
+ if (i==3) {
+ String p2 = "foo";
+ }
+ } else {
+ int j = 6;
+ System.out.println("Ich bin hier "+j);
+ }
+ System.out.println("Finished "+s);
+ }
+}
+
+aspect X {
+ pointcut complicatedPointcut(): execution(* nonExistent(..)) && if(true==true);
+
+ @SuppressAjWarnings("adviceDidNotMatch")
+ before(): complicatedPointcut() {
+ String s= "Hello";
+ if (s.equals("five")) {
+ int i = 5;
+ System.out.println("Je suis ici "+i);
+ i = i + 6;
+ if (i==3) {
+ String p2 = "foo";
+ }
+ } else {
+ int j = 6;
+ System.out.println("Ich bin hier "+j);
+ }
+ System.out.println("Finished "+s);
+ }
+}