From 33d8ee9eededcd1219a6cbd1d063af005d40a3f7 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 2 Apr 2004 12:03:40 +0000 Subject: fix for Bugzilla Bug 31460 Weaving class loader --- .../testdata/src1/LTWMethodITD.aj | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 org.aspectj.ajdt.core/testdata/src1/LTWMethodITD.aj (limited to 'org.aspectj.ajdt.core/testdata/src1/LTWMethodITD.aj') diff --git a/org.aspectj.ajdt.core/testdata/src1/LTWMethodITD.aj b/org.aspectj.ajdt.core/testdata/src1/LTWMethodITD.aj new file mode 100644 index 000000000..35049f04f --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/LTWMethodITD.aj @@ -0,0 +1,22 @@ +import java.util.List; + +public privileged aspect LTWMethodITD { + + public String LTWHelloWorld.getMessage () { + return message; + } + + public void LTWHelloWorld.setMessage (String newMessage) { + message = newMessage; + } + + pointcut init (LTWHelloWorld hw) : + execution(LTWHelloWorld.new()) && this(hw); + + after (LTWHelloWorld hw) : init (hw) { + System.err.println("LTWMethodITD.init(" + thisJoinPointStaticPart + ")"); + hw.getMessage(); + hw.setMessage("Hello LTWMethodITD"); + hw.add(getClass().getName()); + } +} \ No newline at end of file -- cgit v1.2.3