From 508dbcbc90bc7526fc8cef9fe924a97c166e5a0e Mon Sep 17 00:00:00 2001 From: acolyer Date: Mon, 28 Nov 2005 12:08:29 +0000 Subject: tests for pr11280, update to reflection api to get classloading right for test suite etc. --- tests/bugs150/Pr112880.aj | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/bugs150/Pr112880.aj (limited to 'tests/bugs150') diff --git a/tests/bugs150/Pr112880.aj b/tests/bugs150/Pr112880.aj new file mode 100644 index 000000000..14a3d9d87 --- /dev/null +++ b/tests/bugs150/Pr112880.aj @@ -0,0 +1,37 @@ + +abstract class AbstractAttributeGuiFactory { + + public A getThis() { + return null; + } + + public B getThat() { + return null; + } + +} + +class ColorAttributeGuiFactory extends AbstractAttributeGuiFactory {} + +class C1 {} + +class C2 {} + +aspect ForceParameterization { + + + before() : call(C1 *(..)) || call(C2 *(..)) { + System.out.println("method returning C1 or C2"); + } + +} + +public class Pr112880 { + + public static void main(String[] args) { + ColorAttributeGuiFactory f = new ColorAttributeGuiFactory(); + f.getThis(); + f.getThat(); + } + +} \ No newline at end of file -- cgit v1.2.3