Browse Source

Pass explicitly whether it is an interface target

If you only let it determine it from the INVOKE instruction this
can make a mistake when using INVOKESTATIC with an interface
target.
tags/V1_9_0_RC3
Andy Clement 6 years ago
parent
commit
40fa8c710f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      weaver/src/org/aspectj/weaver/bcel/Utility.java

+ 1
- 1
weaver/src/org/aspectj/weaver/bcel/Utility.java View File

@@ -212,7 +212,7 @@ public class Utility {
kind = Constants.INVOKEVIRTUAL;
}

return fact.createInvoke(m.getClassName(), m.getName(), m.getReturnType(), m.getArgumentTypes(), kind);
return fact.createInvoke(m.getClassName(), m.getName(), m.getReturnType(), m.getArgumentTypes(), kind, m.getEnclosingClass().isInterface());
}

/**

Loading…
Cancel
Save