From 1d1d8ca788aaf2764c0f07c32ea3fc0e3f1a9485 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 2 May 2011 18:41:04 +0000 Subject: [PATCH] 328099 --- tests/bugs1612/pr328099/X.java | 1 + tests/bugs1612/pr328099/aop.xml | 10 ++ tests/bugs1612/pr328099/cert/key.store | Bin 0 -> 1206 bytes tests/bugs1612/pr328099/code.jar | Bin 0 -> 4044 bytes tests/bugs1612/pr328099/pom.xml | 95 ++++++++++++++++++ tests/bugs1612/pr328099/readme | 9 ++ tests/bugs1612/pr328099/src/META-INF/aop.xml | 10 ++ .../pr328099/src/foo/bar/BarAspect.java | 23 +++++ tests/bugs1612/pr328099/src/foo/bar/Foo.java | 18 ++++ .../pr328099/src/foo/bar/FooLaunch.java | 7 ++ 10 files changed, 173 insertions(+) create mode 100644 tests/bugs1612/pr328099/X.java create mode 100755 tests/bugs1612/pr328099/aop.xml create mode 100755 tests/bugs1612/pr328099/cert/key.store create mode 100644 tests/bugs1612/pr328099/code.jar create mode 100755 tests/bugs1612/pr328099/pom.xml create mode 100644 tests/bugs1612/pr328099/readme create mode 100755 tests/bugs1612/pr328099/src/META-INF/aop.xml create mode 100755 tests/bugs1612/pr328099/src/foo/bar/BarAspect.java create mode 100755 tests/bugs1612/pr328099/src/foo/bar/Foo.java create mode 100644 tests/bugs1612/pr328099/src/foo/bar/FooLaunch.java diff --git a/tests/bugs1612/pr328099/X.java b/tests/bugs1612/pr328099/X.java new file mode 100644 index 000000000..a4f7a143a --- /dev/null +++ b/tests/bugs1612/pr328099/X.java @@ -0,0 +1 @@ +public class X{} diff --git a/tests/bugs1612/pr328099/aop.xml b/tests/bugs1612/pr328099/aop.xml new file mode 100755 index 000000000..b65c5ef91 --- /dev/null +++ b/tests/bugs1612/pr328099/aop.xml @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/tests/bugs1612/pr328099/cert/key.store b/tests/bugs1612/pr328099/cert/key.store new file mode 100755 index 0000000000000000000000000000000000000000..41288f68298f26df5687ce36596a541174e7f0e4 GIT binary patch literal 1206 zcmezO_TO6u1_mY|W&~sAwETP^Tl=ubw1+^t-=K-H+klUaOPh_6g;9%1kdcvn!cPHnlulP}U?Ie?Uz!_r&W@ayK(?T?@J_6q3uasL9TB+1+T1ad!BbKQmX$>sjt@;K>)S552YMaoW0x{~vhz?aDrAAGRuo zp;JQSIsXyyhtpgB*!*zQp1)neXUgpJ7ILg#{Xe`q^*QM($9bl&Y%`fe9Cu}Suzp_Y zqj5WRm-5AzlNt7!M%AA6&~V^0_}1yVG>mashD1o};(PyoOq5%3=GL3X7u&iGbta1@ zZQ_%ed(?1SeWJF)T(_Qe*2V#cE>1h=DeY$<5FKYQ>-{~;$*kV9)jRSv-L;uM)!lk; z5@Oi?(7i@p*eCGe>HJ&4CDO~P;;uYMX8rN~wtUsb`mR&8jhqS(1*RRlb)Bz$RezH3 z2i8FGch;-dGh?5;PxP!_bv>FZ7EiH4ErLDDn=FSGfO`1TM;;+b4Bz0hfz=GvrXzwi)*M3RZU^^vHo}7Q;WH=g@LKD!94VY z&?U~-A>0i14uZ441TLJpM9x2`ZobGC#n{ArllX114oxebh3h3-^F4WK6p*HnU7D|O zdfS7?2Bob}PRO?3J>DvLwOeWLH}3B{e*esVpR#zPdCgRB7meG0-kZ#4zvl11>+;8$sQUEM; B()a)X literal 0 HcmV?d00001 diff --git a/tests/bugs1612/pr328099/code.jar b/tests/bugs1612/pr328099/code.jar new file mode 100644 index 0000000000000000000000000000000000000000..252589620ac223d2de9fd710173feea30c6e6c1c GIT binary patch literal 4044 zcmai1cRZEv`#+9wY>KQSipVB=W@K~htjHlN#|UK}JA0i}j+M-0l%0q&$_U3MduNBt zgVXQ$)bC@wzTe;Pdj5J|uj_r^_w#P%$rkw zIU^46nFWP0yXDY^5V7jl?J%O!t{EmAUjAJkyG}_74s!##J6iA*WR`oq?VPp?nq1_w z2kCH%abCUZIwtoO!?U(1C}XmR|4B-({3dKggb!XvYi#_M&qs`Wdt|8sPbdj~(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_Mj&fy2#JU@uf^c+^Q)4) z#@D=)COnDnq${Gj$&=ZSand?iJN!p6^$M6dE?`Rt{?|$Vf2G5gkOuUTla<}yLej2> zG{{oG71X(Mf&wxPofqoayqi1)rur6e8o%^b4wPoEusMA5_v-On$346;1G_Gp>4Qx4 z`Zb=?>Ie7t1y(hw0%(o^xL~x{rU0wwpl<7C=wx)K&4t}Nx2!{)xD6f~@+7oNg=bsj zGA-*<2|}}12eVB(=ZK*cw;UL+H{8BdWTo@QU1oktS4ELF_R7o?qli2T&bZth1SivA zK}f413}dSS%B{X>FM@ciX?w{BnsYUI-4`4ND$!avGKPo^DUGv7aq|$aGSWe&*0qKP z0pG>m%6L$+2#BC2WZ!Lj#uXSQkeS?VyoUoUr!(CNt=NBH<)>`rKt@|sKZhI(Aghk{ zbtqan`p26S?%w1h#rjXqKOTewqyn4_Q>Ukf<6-J-{5vU}8?Cg}&#rR1BR-xmPC@{? z=fA7`nK#aZPqz-ou746K*fKZ+#J@9<8c|1=vXr#@~sPJ8p&jfYP| z|27||H~vrleX?;g{{Oo9$x+WEj{W>37XKptxckW|kA?HJq#pbGNstr#+2($fg3g{{pZE;?^gYy8$HRUW0Q;|q01ntcsZM(Q_CE`x BOj7^= literal 0 HcmV?d00001 diff --git a/tests/bugs1612/pr328099/pom.xml b/tests/bugs1612/pr328099/pom.xml new file mode 100755 index 000000000..7cfbfaf5f --- /dev/null +++ b/tests/bugs1612/pr328099/pom.xml @@ -0,0 +1,95 @@ + + 4.0.0 + + foo.bar + aspectj-certificate-problem + 1.0-SNAPSHOT + jar + + + UTF-8 + + + + + + maven-compiler-plugin + + 1.6 + true + 1.6 + 1.6 + true + true + + + + maven-assembly-plugin + 2.2 + + + jar-with-dependencies + + + + foo.bar.Foo + + + + + + make-assembly + package + + single + + + + + + org.apache.maven.plugins + maven-jarsigner-plugin + + cert/key.store + foo + foobar + target + + + + org.codehaus.mojo + exec-maven-plugin + 1.1 + + + + exec + + + + + java + + + -javaagent:/Users/aclement/installs/aspectj1611/lib/aspectjweaver.jar + -jar + target/aspectj-certificate-problem-1.0-SNAPSHOT-jar-with-dependencies.jar + + + + + + + + org.aspectj + aspectjrt + 1.6.10 + + + org.aspectj + aspectjweaver + 1.6.10 + + + diff --git a/tests/bugs1612/pr328099/readme b/tests/bugs1612/pr328099/readme new file mode 100644 index 000000000..035feb471 --- /dev/null +++ b/tests/bugs1612/pr328099/readme @@ -0,0 +1,9 @@ +Build the src contents into a jar which will then contain class files and our manifest. Jar typically code.jar + +Then sign the jar with + jarsigner -keystore ../cert/key.store -storepass foobar code.jar foo + +as per: http://introcs.cs.princeton.edu/85application/jar/sign.html + +then you can run it: +java -javaagent:XXX -classpath code.jar foo.bar.Foo diff --git a/tests/bugs1612/pr328099/src/META-INF/aop.xml b/tests/bugs1612/pr328099/src/META-INF/aop.xml new file mode 100755 index 000000000..d08ae4126 --- /dev/null +++ b/tests/bugs1612/pr328099/src/META-INF/aop.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/tests/bugs1612/pr328099/src/foo/bar/BarAspect.java b/tests/bugs1612/pr328099/src/foo/bar/BarAspect.java new file mode 100755 index 000000000..901978daa --- /dev/null +++ b/tests/bugs1612/pr328099/src/foo/bar/BarAspect.java @@ -0,0 +1,23 @@ +package foo.bar; + +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; + +@Aspect +public class BarAspect { + @SuppressWarnings("unused") + @Pointcut("execution(* foo.bar.Foo.bar())") + private void pointcut() { + } + + @Around("pointcut()") + public Object applyAdvice(ProceedingJoinPoint pjp) throws Throwable { + System.out.print("pre..."); + Object retVal = pjp.proceed(); + System.out.println("...post"); + return retVal; + } + +} diff --git a/tests/bugs1612/pr328099/src/foo/bar/Foo.java b/tests/bugs1612/pr328099/src/foo/bar/Foo.java new file mode 100755 index 000000000..2a35392a2 --- /dev/null +++ b/tests/bugs1612/pr328099/src/foo/bar/Foo.java @@ -0,0 +1,18 @@ +package foo.bar; + +/** + * Hello world! + * + */ +public class Foo +{ + public void bar() { + System.out.print(this.getClass().getSimpleName() + ".bar()"); + } + + public static void main( String[] args ) + { + Foo foo = new Foo(); + foo.bar(); + } +} diff --git a/tests/bugs1612/pr328099/src/foo/bar/FooLaunch.java b/tests/bugs1612/pr328099/src/foo/bar/FooLaunch.java new file mode 100644 index 000000000..ed7452f30 --- /dev/null +++ b/tests/bugs1612/pr328099/src/foo/bar/FooLaunch.java @@ -0,0 +1,7 @@ +package foo.bar; + +public class FooLaunch { + public static void main(String[]argv) { + Foo.main(argv); + } +} -- 2.39.5