diff options
author | chibash <chiba@javassist.org> | 2015-09-25 15:08:57 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2015-09-25 15:08:57 +0900 |
commit | e44bf416bf4f7d705deef9f9243197d4fff9f2d0 (patch) | |
tree | 6a97f1fbf68ecae275e827abf0545f006eb4130d /src/main/javassist/compiler/MemberCodeGen.java | |
parent | 5bbbcdf552934c72b71f15bf97a35d853d309236 (diff) | |
download | javassist-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.java | 2 |
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()) |