aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/IntertypeDifferentThrows.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/IntertypeDifferentThrows.java')
-rw-r--r--tests/bugs/IntertypeDifferentThrows.java17
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