Browse Source

testcode for 114436

tags/V1_5_0RC1
aclement 18 years ago
parent
commit
06d8ef35d6

+ 4
- 0
tests/bugs150/pr114436/ConcreteSimpleTracing.aj View File

@@ -0,0 +1,4 @@
aspect ConcreteSimpleTracing extends SimpleTracing
{
pointcut tracedCall(): execution(void doSomething(String));
}

+ 8
- 0
tests/bugs150/pr114436/SimpleTrace.aj View File

@@ -0,0 +1,8 @@
abstract aspect SimpleTracing perthis(tracedCall())
{
abstract pointcut tracedCall();

before(): tracedCall() {
System.out.println("Entering: " + thisJoinPoint);
}
}

+ 13
- 0
tests/bugs150/pr114436/TestClass.java View File

@@ -0,0 +1,13 @@
public class TestClass
{
public void doSomething(String stuff)
{
System.out.println("TestClass.doSomething(\""+stuff+"\")");
}
public static void main(String[] args)
{
TestClass test = new TestClass();
test.doSomething("withThis");
}
}

Loading…
Cancel
Save