Add extension option to configure known INVOKEDYNAMIC BSMs (#945)

* Set up configuration for known indy bsms

* Make ignoredIndyBsms apply to service remapper

* Add groovy indy instruction to default known BSMs

* Address feedback

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
This commit is contained in:
Luke Bemish
2023-09-09 06:21:14 -06:00
committed by GitHub
parent 777a05457c
commit 0dc2d67317
5 changed files with 25 additions and 3 deletions

View File

@@ -82,6 +82,7 @@ public final class TinyRemapperHelper {
.rebuildSourceFilenames(true)
.invalidLvNamePattern(MC_LV_PATTERN)
.inferNameFromSameLvIndex(true)
.withKnownIndyBsm(extension.getKnownIndyBsms().get())
.extraPreApplyVisitor((cls, next) -> {
if (fixRecords && !cls.isRecord() && "java/lang/Record".equals(cls.getSuperName())) {
return new RecordComponentFixVisitor(next, mappingTree, intermediaryNsId);