Sfoglia il codice sorgente

pr 46671 ensure we don't look for source on the claspath (Andy's fix)

tags/mostlyLastEclipse2xTree_20040112
acolyer 20 anni fa
parent
commit
37e42fc43a

+ 7
- 1
tests/ajcTests.xml Vedi File

@@ -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>

+ 13
- 0
tests/bugs/faultingInSource/SampleClass.java Vedi File

@@ -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");
}
}

+ 15
- 0
tests/bugs/faultingInSource/SimpleTracing.java Vedi File

@@ -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);
}
}

Loading…
Annulla
Salva