diff options
Diffstat (limited to 'tests/bugs151/pr124999.aj')
-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() { } +} |