diff options
author | jhugunin <jhugunin> | 2003-07-23 01:05:55 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-07-23 01:05:55 +0000 |
commit | a1bb5dae64e5e5bc3541d426d9a160ffb5fbec35 (patch) | |
tree | 5759a3a580e37305f1fdf10e2876387f2d18be16 /org.aspectj.ajdt.core/testdata | |
parent | 54a8e9ae3854be8bc202eb55fd1c4e0f735bd424 (diff) | |
download | aspectj-a1bb5dae64e5e5bc3541d426d9a160ffb5fbec35.tar.gz aspectj-a1bb5dae64e5e5bc3541d426d9a160ffb5fbec35.zip |
added test to try to investigate size issues, but can't reproduce for any
number of loops in BasicCommandTestCase.testSizeChanges()
Diffstat (limited to 'org.aspectj.ajdt.core/testdata')
-rw-r--r-- | org.aspectj.ajdt.core/testdata/src1/SizeIssues.java | 21 | ||||
-rw-r--r-- | org.aspectj.ajdt.core/testdata/src1/SizeIssuesAspect.java | 14 |
2 files changed, 35 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/src1/SizeIssues.java b/org.aspectj.ajdt.core/testdata/src1/SizeIssues.java new file mode 100644 index 000000000..18612e289 --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/SizeIssues.java @@ -0,0 +1,21 @@ +public class SizeIssues { + + public static void main(String[] argv) { + int foo1 = 1; + String foo2 = "2"; + Integer foo3 = new Integer(3); + String foo4 = "4"; + callfoo(foo1,foo2,foo3,foo4); + } + + public static void callfoo(int input1,String input2, Integer input3,String input4) { + bar_1(input1); + bar_2(input2); + bar_1(input3.intValue()); + bar_2(input4); + } + + public static void bar_1(int i) {} + public static void bar_2(String s) {} + +}
\ No newline at end of file diff --git a/org.aspectj.ajdt.core/testdata/src1/SizeIssuesAspect.java b/org.aspectj.ajdt.core/testdata/src1/SizeIssuesAspect.java new file mode 100644 index 000000000..ca181a5a9 --- /dev/null +++ b/org.aspectj.ajdt.core/testdata/src1/SizeIssuesAspect.java @@ -0,0 +1,14 @@ +aspect SizeIssuesAspect { + + public pointcut rasScope() : within(*); + + pointcut toStringMethod() : execution(* *.toString()); + + pointcut publicMethods() : rasScope() && + execution( public * *(..)) && !toStringMethod(); + + after() returning: publicMethods() { + System.err.println(thisJoinPointStaticPart.getSignature().toLongString()); + } +} + |