Closed borkdude closed 2 years ago
I kind of figured it out. I need the overload and pass the boolean itf true
:
(.visitMethodInsn v &op (util/class-desc cls)
mname (util/method-desc desc) true)
but this is currently not supported by insn. Could this be added?
Btw, if you're open to adding this option, I could try a PR myself. It would be a nice opportunity to learn more about this library.
Sorry for the late reply; I was away from the computer this weekend.
Thanks for bringing this deficiency to my attention. As you noted, this should be a trivial change and I'd be happy to add support for this.
Unless you'd rather send a PR, I'll include this feature along with upgrading the project to test against Clojure 1.11, which I've had on my todo list. I should have this done in the next day or two.
Thanks again.
Oh, please go ahead :)
I just pushed version 0.5.3 which includes support for the interface flag. Here's a test case adapted from this issue.
Let me know if you have any more issues. Thanks.
Thanks a lot!
Given the following example:
The last expression returns
true
. But when I call theremove
method, which is supposed to call the default method of the interface, I get:In Java this would be:
How can I write this?