diff options
author | aclement <aclement> | 2006-01-24 16:47:42 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-01-24 16:47:42 +0000 |
commit | a4bd19d25597a31e1b76cc5fc188c3112bf0f5ff (patch) | |
tree | 2b474bb2631c9bbaf5d0d8cc2ffeab3e61575692 /tests/bugs151 | |
parent | d916002f3d0ba392915ec323ff7ae189a5bdb474 (diff) | |
download | aspectj-a4bd19d25597a31e1b76cc5fc188c3112bf0f5ff.tar.gz aspectj-a4bd19d25597a31e1b76cc5fc188c3112bf0f5ff.zip |
test and fix for 124999
Diffstat (limited to 'tests/bugs151')
-rw-r--r-- | tests/bugs151/pr124999.aj | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs151/pr124999.aj b/tests/bugs151/pr124999.aj new file mode 100644 index 000000000..42ae02f15 --- /dev/null +++ b/tests/bugs151/pr124999.aj @@ -0,0 +1,27 @@ +abstract aspect GenericInheritedMethod<T> { + + protected T getSomething() { + return null; + } + +} + + +aspect pr124999 extends GenericInheritedMethod<Integer> { + + // Runtime Error + void around() : execution(void someMethod()) { + System.out.println(getSomething()); + } + + public static void main(String[] args) { + new C().someMethod(); + } + + +} + + +class C { + public void someMethod() { } +} |