diff options
author | mwebster <mwebster> | 2006-08-01 13:09:06 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-08-01 13:09:06 +0000 |
commit | a89eac7f94cbea34f2ca76e49a1c42a594194080 (patch) | |
tree | 1c2cbc2179147a120c61a4e28a9093455f5597e5 /tests/ltw | |
parent | f4289cd1511ef1977fecd10cb1949c78dfbb9e9c (diff) | |
download | aspectj-a89eac7f94cbea34f2ca76e49a1c42a594194080.tar.gz aspectj-a89eac7f94cbea34f2ca76e49a1c42a594194080.zip |
Bug 150487 "Tracing and Logging Framework" (lazy initialize SimpleDateFormat to prevent recursion in JDK 1.4 LTW)
Diffstat (limited to 'tests/ltw')
-rw-r--r-- | tests/ltw/ExceptionHandler.aj | 9 | ||||
-rw-r--r-- | tests/ltw/HelloWorld.java | 1 | ||||
-rw-r--r-- | tests/ltw/ant.xml | 26 |
3 files changed, 34 insertions, 2 deletions
diff --git a/tests/ltw/ExceptionHandler.aj b/tests/ltw/ExceptionHandler.aj new file mode 100644 index 000000000..447b59577 --- /dev/null +++ b/tests/ltw/ExceptionHandler.aj @@ -0,0 +1,9 @@ +public aspect ExceptionHandler { + void around() : execution(public void main(String[])) { + try { + proceed(); + } + catch (Exception ex) { + } + } +}
\ No newline at end of file diff --git a/tests/ltw/HelloWorld.java b/tests/ltw/HelloWorld.java index 8e5a1fdd7..9c810cf25 100644 --- a/tests/ltw/HelloWorld.java +++ b/tests/ltw/HelloWorld.java @@ -2,6 +2,7 @@ public class HelloWorld { public static void main (String[] args) throws Exception { System.out.println("Hello World!"); + throw new Exception(); } }
\ No newline at end of file diff --git a/tests/ltw/ant.xml b/tests/ltw/ant.xml index 6f7971d96..38f51fd49 100644 --- a/tests/ltw/ant.xml +++ b/tests/ltw/ant.xml @@ -6,16 +6,38 @@ name="jdwp" value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/> - <target name="JDK14 LTW"> + <target name="JDK14 LTW with XML"> <java fork="yes" classname="HelloWorld" failonerror="yes"> <classpath refid="aj.path"/> +<!-- <classpath> <pathelement path="${aj.sandbox}/hello.jar"/> </classpath> +--> <jvmarg value="-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader"/> + <jvmarg value="-Daj.class.path=${aj.sandbox}/hello.jar;${aj.sandbox}/handler.jar"/> + <jvmarg value="-Daj.weaving.verbose=true"/> + <jvmarg value="-Dorg.aspectj.weaver.showWeaveInfo=true"/> + <jvmarg value="-Dorg.aspectj.tracing.debug=true"/> + <!-- use META-INF/aop.xml style --> +<!-- <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>--> +<!-- <jvmarg line="${jdwp}"/>--> + </java> + </target> + + <target name="JDK14 LTW with ASPECTPATH"> + <java fork="yes" classname="HelloWorld" failonerror="yes"> + <classpath refid="aj.path"/> <!-- + <classpath> + <pathelement path="${aj.sandbox}/hello.jar"/> + </classpath> --> - <jvmarg value="-Daj.class.path=${aj.sandbox}/hello.jar"/> + <jvmarg value="-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader"/> + <jvmarg value="-Daj.class.path=${aj.sandbox}/hello.jar;${aj.sandbox}/handler.jar"/> + <jvmarg value="-Daj.aspect.path=${aj.sandbox}/handler.jar"/> + <jvmarg value="-Daj.weaving.verbose=true"/> + <jvmarg value="-Dorg.aspectj.weaver.showWeaveInfo=true"/> <jvmarg value="-Dorg.aspectj.tracing.debug=true"/> <!-- use META-INF/aop.xml style --> <!-- <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>--> |