aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-01-09 09:59:28 +0000
committeracolyer <acolyer>2004-01-09 09:59:28 +0000
commit37e42fc43a6030e2b10dbf9e766c67e6434a7396 (patch)
treeed35faf3ae880fb589bc2082ee15cbf2cd025375 /tests/bugs
parente4831cc3be2542aa37ea532baa51930746cd9493 (diff)
downloadaspectj-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.java13
-rw-r--r--tests/bugs/faultingInSource/SimpleTracing.java15
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);
+ }
+}