diff options
author | acolyer <acolyer> | 2004-01-09 09:59:28 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-01-09 09:59:28 +0000 |
commit | 37e42fc43a6030e2b10dbf9e766c67e6434a7396 (patch) | |
tree | ed35faf3ae880fb589bc2082ee15cbf2cd025375 /tests/bugs | |
parent | e4831cc3be2542aa37ea532baa51930746cd9493 (diff) | |
download | aspectj-37e42fc43a6030e2b10dbf9e766c67e6434a7396.tar.gz aspectj-37e42fc43a6030e2b10dbf9e766c67e6434a7396.zip |
pr 46671 ensure we don't look for source on the claspath (Andy's fix)
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/faultingInSource/SampleClass.java | 13 | ||||
-rw-r--r-- | tests/bugs/faultingInSource/SimpleTracing.java | 15 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs/faultingInSource/SampleClass.java b/tests/bugs/faultingInSource/SampleClass.java new file mode 100644 index 000000000..e5e736360 --- /dev/null +++ b/tests/bugs/faultingInSource/SampleClass.java @@ -0,0 +1,13 @@ +public class SampleClass +{ + void foo (String s) + { + System.out.println ("Printing " + s); + } + + public static void main(String[] args) + { + SampleClass sc = new SampleClass(); + sc.foo ("hahaha"); + } +} diff --git a/tests/bugs/faultingInSource/SimpleTracing.java b/tests/bugs/faultingInSource/SimpleTracing.java new file mode 100644 index 000000000..231cac762 --- /dev/null +++ b/tests/bugs/faultingInSource/SimpleTracing.java @@ -0,0 +1,15 @@ +aspect SimpleTracing +{ + pointcut traceCall(): + call (void SampleClass.foo(..)); + + before(): traceCall() + { + System.out.println ("Entering: " + thisJoinPoint); + } + + after(): traceCall() + { + System.out.println ("Exiting: " + thisJoinPoint); + } +} |