-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
ASMAPI has various helper methods that are meant to make traversing through bytecode easier. Unfortunately while working on CoreMods 5.2, I made an oversight where invoke dynamic expressions cannot be found using any of ASMAPI's findMethodCall methods, even though I have since added the ASMAPI.MethodType.DYNAMIC enum value.
This is not that big of a deal as I can search for invoke dynamic instructions the traditional way using for loops and checking the opcode. But for CoreMods 6.0, whether it will be in JS, Java, or embedded into some other system, this needs to be accounted for. This can probably by making the return value AbstractInsnNode and also accounting for invoke dynamic instructions as they also have a name and descriptor.