From c79892369fa4225ee5eb71b42c96e289f2eb4fc9 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 5 Mar 2004 10:50:50 +0000 Subject: Fix for Bugzilla Bug 50776 fail in compiling aspect with overriding method introduction with different throws clause --- tests/bugs/IntertypeDifferentThrows.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/bugs/IntertypeDifferentThrows.java (limited to 'tests/bugs/IntertypeDifferentThrows.java') 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 -- cgit v1.2.3