aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test5
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2015-09-25 15:08:57 +0900
committerchibash <chiba@javassist.org>2015-09-25 15:08:57 +0900
commite44bf416bf4f7d705deef9f9243197d4fff9f2d0 (patch)
tree6a97f1fbf68ecae275e827abf0545f006eb4130d /src/test/test5
parent5bbbcdf552934c72b71f15bf97a35d853d309236 (diff)
downloadjavassist-e44bf416bf4f7d705deef9f9243197d4fff9f2d0.tar.gz
javassist-e44bf416bf4f7d705deef9f9243197d4fff9f2d0.zip
fixes JIRA JASSIST-248.
Javassist cannot compile super.m() if m is a default method declared in an interface.
Diffstat (limited to 'src/test/test5')
-rw-r--r--src/test/test5/JIRA248.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/test5/JIRA248.java b/src/test/test5/JIRA248.java
index 0a0abcbe..5ea8472f 100644
--- a/src/test/test5/JIRA248.java
+++ b/src/test/test5/JIRA248.java
@@ -4,9 +4,14 @@ interface JIRA248Intf {
default int foo() { return 1; }
}
-class JIRA248Sup implements JIRA248Intf {
+class JIRA248Sup2 {
+ public int bar() { return 200; }
+}
+
+class JIRA248Sup extends JIRA248Sup2 implements JIRA248Intf {
}
public class JIRA248 extends JIRA248Sup {
public int foo() { return 70; }
+ public int bar() { return 3000; }
}