diff options
author | aclement <aclement> | 2004-03-05 10:50:50 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-03-05 10:50:50 +0000 |
commit | c79892369fa4225ee5eb71b42c96e289f2eb4fc9 (patch) | |
tree | 9d76e6caf15e5df9fdef0eab99971c8b656285db /tests/bugs/IntertypeDifferentThrows.java | |
parent | 4b9195763cb06c5c3d0ce2a25f8e5b9f98446dc0 (diff) | |
download | aspectj-c79892369fa4225ee5eb71b42c96e289f2eb4fc9.tar.gz aspectj-c79892369fa4225ee5eb71b42c96e289f2eb4fc9.zip |
Fix for Bugzilla Bug 50776
fail in compiling aspect with overriding method introduction with different throws clause
Diffstat (limited to 'tests/bugs/IntertypeDifferentThrows.java')
-rw-r--r-- | tests/bugs/IntertypeDifferentThrows.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs/IntertypeDifferentThrows.java b/tests/bugs/IntertypeDifferentThrows.java new file mode 100644 index 000000000..4aaaaf661 --- /dev/null +++ b/tests/bugs/IntertypeDifferentThrows.java @@ -0,0 +1,17 @@ +class A { + public A(){} + public void m() throws Exception{} +} + +class B extends A { + public B(){} + public void some_code(){ + m(); + } +} + +// B.m() introduced here does not throw 'Exception' so class B above +// should compile OK! +aspect C { + public void B.m(){} +}
\ No newline at end of file |