<message kind="error" line="23" />
</compile>
</ajc-test>
-
+
+ <ajc-test dir="bugs/faultingInSource" pr="46671"
+ title="Ensure we don't look for source on the classpath when binary not found">
+ <compile files="SimpleTracing.java" classpath="." options="-verbose">
+ <message kind="warning" line="4" text="no match for this type name: SampleClass"/>
+ </compile>
+ </ajc-test>
</suite>
--- /dev/null
+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");
+ }
+}
--- /dev/null
+aspect SimpleTracing
+{
+ pointcut traceCall():
+ call (void SampleClass.foo(..));
+
+ before(): traceCall()
+ {
+ System.out.println ("Entering: " + thisJoinPoint);
+ }
+
+ after(): traceCall()
+ {
+ System.out.println ("Exiting: " + thisJoinPoint);
+ }
+}