aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/MemberCodeGen.java
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/main/javassist/compiler/MemberCodeGen.java
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/main/javassist/compiler/MemberCodeGen.java')
-rw-r--r--src/main/javassist/compiler/MemberCodeGen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/compiler/MemberCodeGen.java b/src/main/javassist/compiler/MemberCodeGen.java
index 67031992..b1f932ca 100644
--- a/src/main/javassist/compiler/MemberCodeGen.java
+++ b/src/main/javassist/compiler/MemberCodeGen.java
@@ -642,7 +642,7 @@ public class MemberCodeGen extends CodeGen {
bytecode.addInvokestatic(declClass, mname, desc);
}
else if (isSpecial) // if (isSpecial && notStatic(acc))
- bytecode.addInvokespecial(declClass, mname, desc);
+ bytecode.addInvokespecial(targetClass, mname, desc);
else {
if (!Modifier.isPublic(declClass.getModifiers())
|| declClass.isInterface() != targetClass.isInterface())