diff options
author | Andy Clement <aclement@pivotal.io> | 2017-09-27 14:44:32 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2017-09-27 14:44:32 -0700 |
commit | 40fa8c710f916d3b44a8d133fc15b70f3cad813c (patch) | |
tree | efb1ae6c8c7221c1fe3b7f81d57feb8a39ceb07b /weaver | |
parent | 069a891403e7b36519766400da91867ff47ddb53 (diff) | |
download | aspectj-40fa8c710f916d3b44a8d133fc15b70f3cad813c.tar.gz aspectj-40fa8c710f916d3b44a8d133fc15b70f3cad813c.zip |
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.
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/Utility.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/Utility.java b/weaver/src/org/aspectj/weaver/bcel/Utility.java index afbfbc7ef..cd1fd4ab8 100644 --- a/weaver/src/org/aspectj/weaver/bcel/Utility.java +++ b/weaver/src/org/aspectj/weaver/bcel/Utility.java @@ -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()); } /** |