Skip to content

Invoke Dynamic instructions cannot be searched using ASMAPI #72

@Jonathing

Description

@Jonathing

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions