From e08b5a42e6cd8ec569d3f62e05c0c7c9aa9a585b Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 7 Jan 2005 13:46:12 +0000 Subject: [PATCH] Testcode for migration testing --- tests/migration/Aspect111.java | 21 +++++++++++++++++++++ tests/migration/Aspect120.java | 21 +++++++++++++++++++++ tests/migration/Aspect121.java | 21 +++++++++++++++++++++ tests/migration/Program.java | 10 ++++++++++ tests/migration/aspects111.jar | Bin 0 -> 1386 bytes tests/migration/aspects120.jar | Bin 0 -> 1663 bytes tests/migration/aspects121.jar | Bin 0 -> 1679 bytes 7 files changed, 73 insertions(+) create mode 100644 tests/migration/Aspect111.java create mode 100644 tests/migration/Aspect120.java create mode 100644 tests/migration/Aspect121.java create mode 100644 tests/migration/Program.java create mode 100644 tests/migration/aspects111.jar create mode 100644 tests/migration/aspects120.jar create mode 100644 tests/migration/aspects121.jar diff --git a/tests/migration/Aspect111.java b/tests/migration/Aspect111.java new file mode 100644 index 000000000..6537216aa --- /dev/null +++ b/tests/migration/Aspect111.java @@ -0,0 +1,21 @@ +// Aspect should be built with AspectJ 1.1.1 into aspects111.jar +// We are testing the new AspectJ can recognize old aspects + +public aspect Aspect111 { + + pointcut anyMethodCall(): execution(* main(..)); + + pointcut setIntField(): set(int *); + + pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..))); + + pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..))); + + before(): complex() { } + + after(): complex() { } + + void around(): anyMethodCall() { + proceed(); + } +} diff --git a/tests/migration/Aspect120.java b/tests/migration/Aspect120.java new file mode 100644 index 000000000..e51bc4093 --- /dev/null +++ b/tests/migration/Aspect120.java @@ -0,0 +1,21 @@ +// Aspect should be built with AspectJ 1.2.0 into aspects120.jar +// We are testing the new AspectJ can recognize old aspects + +public aspect Aspect120 { + + pointcut anyMethodCall(): execution(* main(..)); + + pointcut setIntField(): set(int *); + + pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..))); + + pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..))); + + before(): complex() { } + + after(): complex() { } + + void around(): anyMethodCall() { + proceed(); + } +} diff --git a/tests/migration/Aspect121.java b/tests/migration/Aspect121.java new file mode 100644 index 000000000..55f8a21b4 --- /dev/null +++ b/tests/migration/Aspect121.java @@ -0,0 +1,21 @@ +// Aspect should be built with AspectJ 1.2.1 into aspects121.jar +// We are testing the new AspectJ can recognize old aspects + +public aspect Aspect121 { + + pointcut anyMethodCall(): execution(* main(..)); + + pointcut setIntField(): set(int *); + + pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..))); + + pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..))); + + before(): complex() { } + + after(): complex() { } + + void around(): anyMethodCall() { + proceed(); + } +} diff --git a/tests/migration/Program.java b/tests/migration/Program.java new file mode 100644 index 000000000..a4568bd67 --- /dev/null +++ b/tests/migration/Program.java @@ -0,0 +1,10 @@ +public class Program { + + public static void main(String[] argv) { + new Program().printHello(); + } + + public void printHello() { + System.err.println("Hello"); + } +} diff --git a/tests/migration/aspects111.jar b/tests/migration/aspects111.jar new file mode 100644 index 0000000000000000000000000000000000000000..c68f901a59ccfd7c19b2d5d893b042bfa763241f GIT binary patch literal 1386 zcmZ9MYd8}M9LAT1(6QJ&sFll8k~p!Yxh*U!EOJR}91M*eG-WQC(osh?j{DtK#9Z1M zW}4hWEq6n*QjvIyVH_GNw^N@^=e+NS_x(Tr_w&yMvl9pb?D}q zTHtGpMawk?JbHERCMhmnUm1VC*ss|57)P7lucr-k<9)hSaP@4o1vx4_S4qK6*0UeS zCi{E~;9E+%+Q?_#q415l5F*qFELD1`#e=?mbQ>%)6tVW$#&G)M?;}iwW>orcuY*P< zVvlWUo5=NTPEZm#>xFfYv&Hf8le4&TIO!X|5u_#BKiupP>T%D6*|op#b%OC@2lJ0# zYk5#ikZ2xE{JbIdakr*Ryt6;ulE%s}EAbVZ(G3Oe@ltk+UIhv@yp}|ILU9O`g^69= z0#QAG`9|!Fbq);8J6;K677RR~sKlIdQDeMn2hTUwoC6 zUHWKq_=6fJGUadEi<;ZQ1xyw$;2xpIWF-=!?L0^mXaVJ42uF~0>kB;b#nv?R%|zT-HFOj z)n{eTGgj861mvJu`b;ry_XJKpfqDhKyD z8Dt?e;1toUXY}ISz~{XkSIru94FcA4mt4>ktk_SV69}5hsM&kRCnV4@`U=}h3r9y1 zo*t-TX=fpa22|D|v3cCq^W8nUnL3N5etvJnF@P57!@s4O9^MZ^%&u)I`(sJ>7dL*f zifOuYR4v?eVvlmQzkQ+@UiIODCABlR1Y`Q-^i0Ui>4&QlQ7mw8m=0>BqI$|+qPO?d zG-ZXA;54ezC}~c}im;5_U(w5(uAVKUSe5dwLpGtlUMmSAxkqIX*OruPP_FrKl#YMS zWEJ9Bo&X_mn)KqpS}v4vwQs8+G-}JTDo)=`rRVH(o${W1Wo9?9`8-=3CO9To^qlYU zLrQf~=N}?5DRNiPRnXrquSDCG_D8r5LisY||W*n7WM% z--a)1K0Rdk6!X%95#WBWUSS(St*6OO-ZfZs7=Hif8etMS={>obj!v;P^Q2gn7kX!p zrG8$8DHolzXs<3r`lf?FjK=wK2N5b=D3|sURvyAyRnb z+=jyjdQ8VZf1>aU6;DqZplVUIXsx4(*L!szI$cutDaK|WZolb*k>6$h?GL3lKmb5Z n2>@`x?2v%~{srUDzaL=yul|Qg7mTdjkHL=bMt)Cq*&o+G)P;?s literal 0 HcmV?d00001 diff --git a/tests/migration/aspects120.jar b/tests/migration/aspects120.jar new file mode 100644 index 0000000000000000000000000000000000000000..901ad5088aa53ea27687e47a2445ee752072d746 GIT binary patch literal 1663 zcmZ{kdo&Xc6vvkyUQyOi%dfmn`x*0ohHBUtwv6UI?`O#);fIw(q&$+xOkOFPSIs=u zruAS-VMauXX&QcFB4vg8@mKvir|&)Y+B9|yaw+du%Zjp#miNEh&nK!9xk zG~xsthQc7V&~OY2iEuihiAH{Z0RVhL_jKFa!8H4&>|juKPhXRx_MqMb|BR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