diff options
author | Andy Clement <aclement@gopivotal.com> | 2013-12-06 10:33:48 -0800 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2013-12-06 10:33:48 -0800 |
commit | dd88d21ef6d515bbc7034ca429d392f62101802a (patch) | |
tree | 19ca7868b21c71d7b56bdfd43412a7ea027abfea /tests/bugs175 | |
parent | 7d8b14cc98a2f377c83156f099598623f4623a49 (diff) | |
download | aspectj-dd88d21ef6d515bbc7034ca429d392f62101802a.tar.gz aspectj-dd88d21ef6d515bbc7034ca429d392f62101802a.zip |
Fix for 423257
Diffstat (limited to 'tests/bugs175')
-rw-r--r-- | tests/bugs175/pr423257/AspectX.java | 11 | ||||
-rw-r--r-- | tests/bugs175/pr423257/Test.java | 28 |
2 files changed, 39 insertions, 0 deletions
diff --git a/tests/bugs175/pr423257/AspectX.java b/tests/bugs175/pr423257/AspectX.java new file mode 100644 index 000000000..7f33038d0 --- /dev/null +++ b/tests/bugs175/pr423257/AspectX.java @@ -0,0 +1,11 @@ +package com.foo.bar; + +import org.aspectj.lang.annotation.*; + +@Aspect +public class AspectX { + @Before("execution(* com.foo.bar.Test.foo())") + public void advice() { + System.out.println("Hello"); + } +} diff --git a/tests/bugs175/pr423257/Test.java b/tests/bugs175/pr423257/Test.java new file mode 100644 index 000000000..5a32d6fa8 --- /dev/null +++ b/tests/bugs175/pr423257/Test.java @@ -0,0 +1,28 @@ +package com.foo.bar; + +public class Test { + + abstract class X<T> {} + + class X1 extends X<Integer> {} + + class X2 extends X<String> {} + + public Test foo() { + return this; + } + + public <T> X<T> createMessage(int n) { + X x; + if (n == 0) { + x = new X1(); + } else { + x = new X2(); + } + return x; + } + + public static void main(String[] args) { + + } +}
\ No newline at end of file |