@@ -6908,5 +6908,11 @@ | |||
<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> |
@@ -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"); | |||
} | |||
} |
@@ -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); | |||
} | |||
} |