From 37e42fc43a6030e2b10dbf9e766c67e6434a7396 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 9 Jan 2004 09:59:28 +0000 Subject: [PATCH] pr 46671 ensure we don't look for source on the claspath (Andy's fix) --- tests/ajcTests.xml | 8 +++++++- tests/bugs/faultingInSource/SampleClass.java | 13 +++++++++++++ tests/bugs/faultingInSource/SimpleTracing.java | 15 +++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 tests/bugs/faultingInSource/SampleClass.java create mode 100644 tests/bugs/faultingInSource/SimpleTracing.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index c99ab74c6..a3553d1fe 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -6908,5 +6908,11 @@ - + + + + + + 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); + } +} -- 2.39.5